8f5aa936130cd48d99530395a30181e1c97707eb
[binutils-gdb.git] / gas / ChangeLog
1 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
2
3 * app.c (do_scrub_chars): Add states 14 and 15 to handle
4 predicate for ia64.
5
6 2003-06-05 Michael Snyder <msnyder@redhat.com>
7
8 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
9 (build_bytes): Ditto.
10
11 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
12
13 * config/tc-h8sx.c (DMODE): Remove.
14 (colonmod24): Don't choose a default if the operand is a 16-bit
15 constant integer.
16 (fix_operand_size): New function.
17 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
18 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
19
20 2003-06-05 Michal Ludvig <mludvig@suse.cz>
21
22 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
23 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
24 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
25 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
26 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
27 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
28 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
29 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
30 (cfi_pseudo_table): New directives .cfi_return_column,
31 .cfi_restore, .cfi_undefined, .cfi_same_value,
32 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
33 (dot_cfi, output_cfi_insn): Handle new directives.
34 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
35 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
36 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
37
38 2003-06-04 Richard Henderson <rth@redhat.com>
39
40 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
41
42 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
43
44 2003-06-04 Richard Henderson <rth@redhat.com>
45
46 * config/tc-alpha.c (s_alpha_usepv): New.
47 (md_pseudo_table): Add it.
48 (alpha_cfi_frame_initial_instructions): New.
49 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
50 (tc_cfi_frame_initial_instructions): New.
51 * doc/c-alpha.texi: Document .usepv.
52
53 2003-06-04 Jakub Jelinek <jakub@redhat.com>
54
55 * as.c (show_usage): Document --execstack and --noexecstack.
56 (parse_args): Add --execstack and --noexecstack.
57 (main): Create .note.GNU-stack section if --execstack or
58 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
59 * as.h (flag_execstack, flag_noexecstack): New.
60
61 2003-06-03 Chris Demetriou <cgd@broadcom.com>
62
63 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
64 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
65 (OPTION_MISC_BASE): New defines.
66 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
67 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
68 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
69 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
70 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
71 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
72 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
73 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
74 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
75 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
76 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
77 (OPTION_TRAP): Redefine in terms of new defines.
78 (md_longopts): Reorder entries.
79
80 2003-05-14 Michael Snyder <msnyder@redhat.com>
81 From Bernd Schmidt <bernds@redhat.com>
82 and Michael Snyder <msnyder@redhat.com>
83 and Alexandre Oliva <aoliva@redhat.com>
84 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
85 * config/tc-h8300.h: Ditto.
86
87 2003-06-03 Nick Clifton <nickc@redhat.com>
88
89 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
90 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
91 before calling bfd_reloc_type_lookup.
92
93 2003-06-02 Alan Modra <amodra@bigpond.net.au>
94
95 * read.c (emit_expr): Set dot_value.
96 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
97
98 2003-06-02 Alan Modra <amodra@bigpond.net.au>
99
100 * macro.c (sub_actual): Don't lose string if it turns out that
101 &string wasn't an arg.
102
103 2003-05-31 Richard Henderson <rth@redhat.com>
104
105 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
106 (cfi_finish): Set flag_traditional_format around .eh_frame data.
107
108 2003-05-29 Richard Henderson <rth@redhat.com>
109
110 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
111 (all_frame_data, plast_frame_data, cur_frame_data): New.
112 (s_alpha_ent): Record data for dwarf2 cfi.
113 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
114 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
115 * config/tc-alpha.h (md_end): New.
116 (DWARF2_DEFAULT_RETURN_COLUMN): New.
117 (DWARF2_CIE_DATA_ALIGNMENT): New.
118
119 2003-05-29 Nick Clifton <nickc@redhat.com>
120
121 * configure.in: Add i386-*-freebsd* entry.
122 * configure: Regenerate.
123
124 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
125
126 * config/tc-m32r.c: Amend comment to refer to Renesas
127
128 2003-05-27 Richard Henderson <rth@redhat.com>
129
130 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
131 symbol_create call.
132 (current_location): Use symbol_temp_new_now.
133 * stabs.c (s_stab_generic): Use symbol_temp_new.
134 * symbols.c (temp_label_name): Remove.
135 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
136
137 2003-05-27 Richard Henderson <rth@redhat.com>
138
139 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
140 * as.c (main): Always call cfi_finish.
141 * config/tc-i386.c (x86_dwarf2_return_column): New.
142 (x86_cie_data_alignment): New.
143 (md_begin): Set them.
144 (tc_x86_cfi_init): Remove.
145 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
146 return int, not unsigned long; don't as_bad here.
147 (tc_x86_frame_initial_instructions): Streamline; use
148 updated api.
149 * config/tc-i386.h (tc_cfi_init): Remove.
150 (DWARF2_DEFAULT_RETURN_COLUMN): New.
151 (DWARF2_CIE_DATA_ALIGNMENT): New.
152
153 2003-05-27 Richard Henderson <rth@redhat.com>
154
155 * symbols.c (temp_label_name): New.
156 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
157 (symbol_set_value_now): New.
158 * symbols.h: Prototype them.
159 * dwarf2dbg.c: Use them.
160 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
161
162 2003-05-23 Jason Eckhardt <jle@rice.edu>
163
164 * config/tc-i860.c (target_xp): Declare variable.
165 (OPTION_XP): Declare macro.
166 (md_longopts): Add option -mxp.
167 (md_parse_option): Set target_xp.
168 (md_show_usage): Add -mxp usage.
169 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
170 (md_assemble): Don't try expansions if XP_ONLY is set.
171 * doc/c-i860.texi: Document -mxp option and i860XP support.
172
173 2003-05-23 Eric Christopher <echristo@redhat.com>
174
175 * config/tc-mips.c (macro_build_jalr): Warning patrol.
176
177 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
178
179 * config/tc-mips.c (append_insn): Use actual relocation size for new
180 fixp's. Don't relax overflow checking for partial_inplace relocations.
181 Use the actual relocation type in combined relocs, not just the type
182 of the first one.
183 (macro_build_jalr): Use actual relocation size for new fix.
184 (s_cpsetup, s_gpdword): Likewise.
185
186 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
187
188 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
189
190 2003-05-22 Nick Clifton <nickc@redhat.com>
191
192 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
193 section relative offsets for relocs that will not be based on the
194 section symbol.
195 (xstormy16_md_apply_fix3): Remove previous patch to this
196 function.
197
198 2003-05-07 Eric Christopher <echristo@redhat.com>
199
200 * config/tc-mips.c (mips_abicalls): New variable.
201 (md_parse_option): Use.
202 (s_option): Ditto.
203 (s_abicalls): Ditto.
204 (mips_elf_final_processing): Set EF_MIPS_PIC and
205 EF_MIPS_CPIC dependent on above.
206
207 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
208
209 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
210
211 2003-05-21 Nick Clifton <nickc@redhat.com>
212
213 * config/obj-elf.c: Include dwarf2dbg.h.
214 (elf_pseudo_tab): Add .file and .loc.
215 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
216 * config/tc-arm.c: Likewise.
217 * config/tc-h8300.c: Likewise.
218 * config/tc-hppa.c: Likewise.
219 * config/tc-ia64.c: Likewise.
220 * config/tc-m68hc11.c: Likewise.
221 * config/tc-m68k.c: Likewise.
222 * config/tc-mmix.c: Likewise.
223 * config/tc-mn10300.c: Likewise.
224 * config/tc-ppc.c: Likewise.
225 * config/tc-sh.c: Likewise.
226 * config/tc-sparc.c: Likewise.
227 * config/tc-v850.c: Likewise.
228 * config/tc-frv.c: Likewise, and remove redundant inclusion of
229 dwarf2dbg.h.
230 * config/tc-ip2k.c: Likewise.
231 * config/tc-iq2000.c: Likewise.
232 * config/tc-xstormy16.c: Likewise.
233 * config/tc-xtensa.c: Likewise.
234 * Makefile.am: Regenerate dependencies.
235 * Makefile.in: Regenerate.
236 * aclocal.m4: Regenerate.
237 * config.in: Regenerate.
238 * configure: Regenerate.
239 * po/POTFILES.in: Regenerate.
240 * po/gas.pot: Regenerate.
241
242 2003-05-21 Nick Clifton <nickc@redhat.com>
243
244 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
245 BFD_ASSEMBLER targets.
246 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
247 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
248 defining BFD_ASSEMBLER.
249
250 2003-05-20 Michal Ludvig <mludvig@suse.cz>
251
252 * as.c (main): Remove tc_cfi_init().
253 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
254 with '%'.
255 (cfi_pseudo_table): Add "cfi_register" entry.
256 (cfi_make_insn): Handle CFA_register.
257 (cfi_output_insn): Ditto.
258 (dot_cfi): Ditto.
259 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
260 (dot_cfi_endproc): Reuse already emitted CIEs.
261 * testsuite/gas/cfi/cfi-i386.d: New pattern.
262 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
263
264 2003-05-20 Nick Clifton <nickc@redhat.com>
265
266 * config/tc-xstormy16.c: Include dwarf2dbg.h.
267 (md_pseudo_table): Add entries for .loc and .line.
268
269 2003-05-20 Alan Modra <amodra@bigpond.net.au>
270
271 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
272 defined.
273 (dot_cfi_endproc): Avoid C99 construct.
274
275 2003-05-20 Michal Ludvig <mludvig@suse.cz>
276
277 * dw2gencfi.c, dw2gencfi.h: New files.
278 * config/tc-i386.c (tc_x86_cfi_init): New function.
279 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
280 * as.c (parse_args): Set verbose flag on --verbose.
281 (main): Call tc_cfi_init()/cfi_finish().
282 * as.h (verbose): New external variable.
283 * read.c (pobegin): Insert CFI pops to the list.
284 * symbols.c (local_symbol_make): Make symbol external.
285 * symbols.h (local_symbol_make): New prototype.
286 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
287 * Makefile.in: Regenerate.
288 * doc/as.texinfo: Added node "CFI directives" with description of
289 all implemented .cfi_* directives.
290 * doc/Makefile.in: Regenerate.
291 * po/POTFILES.in: Regenerate.
292
293 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
294
295 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
296 insns.
297 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
298
299 2003-05-18 Jason Eckhardt <jle@rice.edu>
300
301 * config/tc-i860.c (i860_process_insn): Initialize fc after
302 each opcode mismatch.
303
304 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
305
306 * configure.in: Accept i[3-7]86 variants.
307 * configure: Regenerate.
308
309 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
310
311 * config/tc-mips.h: Fix comment formatting.
312
313 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
314
315 * read.c (old_buffer, old_input, old_limit): Remove variables.
316 (read_a_source_file): Delete label contin.
317 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
318 input as with macros, instead of in separate old_* variables.
319 Zero-terminate string being scrubbed.
320
321 2003-05-12 Nick Clifton <nickc@redhat.com>
322
323 * config/tc-xstormy16.c (skipping_fptr): New local variable.
324 (md_assemble): Reset skipping_fptr.
325 (md_operand): If @fptr() is followed by a minus sign, set
326 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
327 @fptr is detected, ignore it and reset skipping_fptr.
328
329 2003-05-11 Jason Eckhardt <jle@rice.edu>
330
331 * config/tc-i860.c (MAX_FIXUPS): Define.
332 (struct i860_fi fi[]): New struct.
333 (struct i860_it the_insn): Add above as member and move fields
334 exp, reloc, pcrel and fup into i860_fi.
335 (md_assemble): Replace all instances of exp, reloc, pcrel
336 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
337 Add a loop to possibly emit multiple fix-ups for each insn.
338 (i860_process_insn): Likewise.
339 (i860_get_expression): Likewise.
340 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
341
342 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
343
344 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
345
346 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
347
348 * config/tc-ia64.c (alias_hash): New.
349 (alias_name_hash): New.
350 (secalias_hash): New.
351 (secalias_name_hash): New.
352 (md_pseudo_table): Add "secalias".
353 (md_begin): Initialize alias_hash, alias_name_hash,
354 secalias_hash and secalias_name_hash.
355 (struct alias): New.
356 (dot_alias): Implement .alias and .secalias directives.
357 (do_alias): New.
358 (ia64_adjust_symtab): New.
359 (do_secalias): New.
360 (ia64_frob_file): New.
361
362 * config/tc-ia64.h (ia64_adjust_symtab): New.
363 (tc_adjust_symtab): Defined.
364 (ia64_frob_file): New.
365 (tc_frob_file): Defined.
366
367 2003-05-07 Dmitry Diky <diwil@mail.ru>
368
369 * tc-msp430.c: Add missing lines to known cpus list.
370
371 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
372
373 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
374 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
375 * config.in, configure: Rebuilt.
376
377 2003-05-05 H.J. Lu <hjl@gnu.org>
378
379 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
380 howto->partial_inplace is false.
381
382 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
383
384 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
385 symbol_used_in_reloc_p check.
386 (md_apply_fix3): Remove check for howto->pcrel_offset.
387
388 2003-05-03 H.J. Lu <hjl@gnu.org>
389
390 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
391 fatal error for unknown section attribute.
392
393 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
394 unknown section attribute.
395 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
396 * config/tc-ppc.c (ppc_section_letter): Likewise.
397
398 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
399 (ia64_elf_section_type): Accept "unwind".
400
401 2003-05-02 H.J. Lu <hjl@gnu.org>
402
403 * read.h (demand_copy_string): New.
404
405 * config/tc-alpha.c (demand_copy_string): Removed.
406
407 2003-05-02 Michael Snyder <msnyder@redhat.com>
408
409 * write.h (FAKE_LABEL_NAME): Allow override
410 (for targets that like eg. a leading dot in a local label).
411
412 2003-05-02 Nick Clifton <nickc@redhat.com>
413
414 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
415 addend with the symbol's value for pc-relative relocations against
416 a defined symbol - this will be done automatically.
417
418 2003-05-01 H.J. Lu <hjl@gnu.org>
419
420 * config/obj-elf.c (obj_elf_type): Accept "notype" and
421 "STT_NOTYPE".
422
423 2003-05-01 H.J. Lu <hjl@gnu.org>
424
425 * config/tc-ia64.h (tc_canonicalize_section_name): New.
426
427 * config/obj-elf.c (obj_elf_section_name): Call
428 tc_canonicalize_section_name if it is defined.
429
430 2003-05-01 H.J. Lu <hjl@gnu.org>
431
432 * config/tc-ia64.c (ia64_check_label): New.
433 * config/tc-ia64.h (tc_check_label): New.
434
435 * read.c (read_a_source_file): Call tc_check_label after
436 creating a user-defined label if defined.
437
438 2003-05-02 Alan Modra <amodra@bigpond.net.au>
439
440 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
441 -be and split strings to below 509 bytes in length.
442
443 2003-05-01 Christian Groessler <chris@groessler.org>
444
445 * expr.h: Fix comments in operatorT typedef.
446 * config/tc-z8k.c: Add 2003 to copyright message.
447 Fold s_segm() and s_unseg() into one function s_segm(parm) which
448 decides by the parameter.
449 (md_begin): Don't set linkrelax. Only set Z8002 default if no
450 command line argument was given to select the intended
451 architecure.
452 (get_interrupt_operand): Warn if NOP type code is emitted.
453 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
454 (apply_fix): Call newfix with additional 'size' parameter.
455 (build_bytes): Remove unused variable 'nib'. Detect overflow in
456 4 bit immediate arguments.
457 (md_longopts): Add 'linkrelax' option.
458 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
459 variable when 'linkrelax' command line option is specified.
460 (md_show_usage): Display 'linkrelax' option.
461 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
462 R_CALLR and R_REL16.
463 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
464
465 2003-04-30 H.J. Lu <hjl@gnu.org>
466
467 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
468 (ia64_float_to_chars): Likewise.
469 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
470 and ia64_float_to_chars by tc_segment_info_data.endian from
471 the current segment if byteorder == -1.
472 (md_begin): Call dot_byteorder to set target_big_endian.
473 (md_atof): Call ia64_float_to_chars to convert floating point.
474 (ia64_float_to_chars_bigendian): New function.
475 (ia64_float_to_chars_littleendian): Likewise.
476 (ia64_elf_section_change_hook): Likewise.
477
478 * config/tc-ia64.h (ia64_number_to_chars): New.
479 (md_number_to_chars): Changed to (*ia64_number_to_chars)
480 (ia64_elf_section_change_hook): New.
481 (md_elf_section_change_hook): Defined.
482 (ia64_segment_info_type): New struct.
483 (TC_SEGMENT_INFO_TYPE): Defined.
484
485 2003-04-30 H.J. Lu <hjl@gnu.org>
486
487 * config/tc-ia64.c (md_section_align): Deleted.
488
489 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
490 (md_section_align): New.
491
492 2003-04-30 H.J. Lu <hjl@gnu.org>
493
494 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
495 and add real16.
496 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
497 "real16.ua".
498 (md_atof): Add 6 byte padding of zero for real16.
499
500 2003-04-29 Nick Clifton <nickc@redhat.com>
501
502 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
503 start of a version name.
504
505 2003-04-28 Chris Demetriou <cgd@broadcom.com>
506
507 * configure.in (mips-*-*n*bsd*): Replace with...
508 (mips-*-netbsd*, mips-*-openbsd*): These.
509 * configure: Regenerate.
510
511 2003-04-28 H.J. Lu <hjl@gnu.org>
512
513 * config/tc-hppa.c (hppa_symbol_chars): New.
514 * config/tc-hppa.h (tc_symbol_chars): Likewise.
515
516 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
517
518 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
519
520 2003-04-25 Chris Demetriou <cgd@broadcom.com>
521
522 * NEWS: Belatedly mention support for MIPS32 Release 2.
523
524 2003-04-24 Eric Christopher <echristo@redhat.com>
525
526 * config/tc-mips.c (nopic_need_relax): Revert previous
527 change.
528
529 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
530
531 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
532 * config/tc-h8300.c (dwarf2dbg.h): Include
533 (md_pseudo_table): Handle .loc and .file
534 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
535 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
536 * Makefile.in: Regenerate.
537
538 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
539
540 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
541 (md_pseudo_table): Add h8300hn, h8300sn.
542 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
543 * doc/c-h8300.texi : Add documentation for new machine directives.
544
545 2003-04-24 Nick Clifton <nickc@redhat.com>
546
547 * config/tc-ppc.c (ppc_symbol_chars): Define.
548 * config/tc-ppc.h (tc_symbol_chars): Define.
549
550 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
551
552 * config/tc-sh.c: Amend comment to refer to SuperH.
553 * config/tc-sh.h: Likewise.
554 (LISTING_HEADER): Amend to refer to SuperH.
555 * config/tc-sh64.c: Change comment to refer to SuperH.
556 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
557 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
558 * doc/c-sh.texi: Amend to refer to SuperH.
559 Add SuperH architecture documentation references.
560 * doc/c-sh64.texi: Change to refer to SuperH.
561
562 2003-04-23 H.J. Lu <hjl@gnu.org>
563
564 * app.c (do_scrub_chars): More checks for valid labels.
565
566 2003-04-22 H.J. Lu <hjl@gnu.org>
567
568 * app.c (do_scrub_chars): Check for valid label.
569
570 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
571
572 * doc/as.texinfo: Replace references to Mitsubishi M32R with
573 references to Renesas M32R.
574 * doc/c-m32r.texi: Likewise.
575
576 2003-04-21 Richard Henderson <rth@redhat.com>
577
578 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
579 (out_file_list): Assign non-null filename after generating error.
580
581 2003-04-18 Jakub Jelinek <jakub@redhat.com>
582
583 * ehopt.c (check_eh_frame): For aug_size == 0
584 in state_seeing_aug_size state skip the state_skipping_aug
585 state.
586
587 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
588
589 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
590 'Renesas'.
591 * doc/c-h8500.texi: Likewise.
592 * doc/c-sh.texi: Likewise.
593 * doc/c-sh64.texi: Likewise.
594 * doc/h8.texi: Likewise.
595 * config/tc-h8300.c: Likewise.
596 * config/tc-h8300.h: Likewise.
597 * config/tc-h8500.c: Likewise.
598 * config/tc-h8500.h: Likewise.
599 * config/tc-sh.c: Likewise.
600 * config/tc-sh.h: Likewise.
601 * config/tc-sh64.c: Likewise.
602 * config/tc-sh64.h: Likewise.
603
604 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
605
606 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
607 * config/tc-mips.c: Use signed add for n32 address arithmetic.
608 (append_insn): When filling delay slots with instructions
609 that have fixups that tc_gen_reloc might consider modifyable
610 in variant frags, start a new frag.
611 (load_address): Generate GOT_DISP with of without offset
612 depending on whether symbol is local. For -xgot, use
613 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
614 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
615 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
616 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
617 <ld_st>: In NewABI with small got, always use
618 GOT_PAGE/GOT_OFST, with the latter in the load/store
619 instruction. With big got, use GOT_HI16/GOT_LO16 or
620 GOT_PAGE/GOT_OFST.
621 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
622 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
623 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
624 (md_convert_frag): Use memmove for safe copying of overlapping
625 regions.
626
627 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
628
629 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
630 -mlong, -mshort-double and -mlong-double options; use table @code.
631 (M68HC11-Syntax): Update to document 68HC12 operands.
632 (M68HC11-Modifiers): New section for operand modifiers.
633 (M68HC11-Directives): New section for specific assembler directives.
634 (M68HC11-Branch): Fix Overfull hbox error.
635
636 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
637
638 * config/tc-mips.c (macro): Add comments explaining the rationale
639 for Chris' change.
640
641 2003-04-09 Chris Demetriou <cgd@broadcom.com>
642
643 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
644 constant address that Alexandre took out by accident. Reject
645 64-bit addresses that are not sign extensions of 32 bits only if
646 we don't support 64-bit address constants.
647
648 2003-04-09 Alan Modra <amodra@bigpond.net.au>
649
650 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
651
652 2003-04-08 Nick Clifton <nickc@redhat.com>
653
654 * as.c (perform_an_assembly_pass): If using cgen, call
655 gas_cgen_begin.
656 * cgen.c (gas_cgen_begin): New function. If
657 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
658 otherwise call cgen_clear_signed_overflow_ok.
659 * cgen.h: Prototype gas_cgen_begin.
660
661 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
662
663 * write.c (write_relocs): Remove unused variable.
664
665 2003-04-06 Chris Demetriou <cgd@broadcom.com>
666
667 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
668 (macro): Use new macro to decide whether to emit constant address
669 as 32 or 64 bits if addresses are 32-bit wide but registers are
670 64-bit wide.
671
672 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
673
674 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
675 (M6811_OP_PAGE_ADDR): New internal define.
676 (get_operand): New modifier %page and %addr to obtain page and
677 address part of a far-function.
678 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
679 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
680 relocs.
681 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
682 (find_opcode): Add comment.
683 (md_estimate_size_before_relax): Force relocation of
684 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
685 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
686 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
687 on the symbol itself so that DWARF2 strings are merged correctly.
688
689 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
690
691 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
692 default tic4x target format to 'coff2-tic4x'.
693 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
694 s/c3x/tic3x/
695 * config/tc-tic4x.h: Ditto
696
697 2003-04-03 Nick Clifton <nickc@redhat.com>
698
699 * NEWS: Mention support for Xtensa architecture.
700
701 2003-04-02 Philip Blundell <philb@gnu.org>
702
703 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
704
705 2003-04-02 Chris Demetriou <cgd@broadcom.com>
706
707 * config/tc-mips.c (macro2): Adjust implementation of
708 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
709 in the case where the source and destination registers
710 are the same.
711
712 2003-04-01 Bob Wilson <bob.wilson@acm.org>
713
714 * Makefile.am (CPU_TYPES): Add xtensa.
715 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
716 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
717 (xtensa-relax.o): New target.
718 Run "make dep-am".
719 * Makefile.in: Regenerate.
720 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
721 extra_objects for xtensa targets.
722 * configure: Regenerate.
723 * write.c (write_object_file): Add new md_post_relax_hook.
724 * config/tc-xtensa.c: New file.
725 * config/tc-xtensa.h: Likewise.
726 * config/xtensa-istack.h: Likewise.
727 * config/xtensa-relax.c: Likewise.
728 * config/xtensa-relax.h: Likewise.
729 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
730 * doc/Makefile.in: Regenerate.
731 * doc/all.texi: Set new XTENSA variable.
732 * doc/as.texinfo: Set new Xtensa variable. Describe
733 Xtensa-specific options. Define line comment character for
734 Xtensa. Add Xtensa processors to list of ELF targets where
735 alignment is specified in bytes. Add new Xtensa-Dependent node.
736 Add acknowledgements for those contributing to the Xtensa port.
737 * doc/internals.texi: Describe new md_post_relax_hook.
738 * doc/c-xtensa.texi: New file.
739
740 2003-04-01 Nick Clifton <nickc@redhat.com>
741 Richard Earnshaw <rearnsha@arm.com>
742
743 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
744 (ARM_ARCH_IWMMXT): Simplify.
745 (insns): Place iwmmx instructions in correct place in table.
746 (arm_add_note): New function: Add a note entry to a .note section.
747 (md_begin): Make the default architecture be unknown.
748 Suppress the creation of an arm note section.
749
750 2003-03-26 Eric Christopher <echristo@redhat.com>
751
752 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
753
754 2003-03-25 Stan Cox <scox@redhat.com>
755 Nick Clifton <nickc@redhat.com>
756
757 Contribute support for Intel's iWMMXt chip - an ARM variant:
758
759 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
760 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
761 (enum wreg_type, enum iwmmxt_insn_type): New types.
762 (wr_register, wc_register, wcg_register): New macros.
763 (iwmmxt_table): New variable.
764 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
765 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
766 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
767 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
768 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
769 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
770 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
771 cp_byte_address_offset, cp_byte_address_required_here,
772 check_iwmmxt_insn): New functions.
773 (asm_opcode_insns): Add iWMMXt instructions.
774 (md_begin): Set the mach value for iWMMXt targets. Create a note
775 section to identify iwmmxt binaries.
776 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
777 * doc/c-arm.texi: Document the support for the iWMMXt.
778 * NEWS: Mention new support.
779
780 2003-03-24 Daniel Néri <dne@mayonnaise.net>
781
782 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
783 * doc/all.texi: Likewise.
784 * doc/c-tic54x.texi: Likewise.
785
786 2003-03-21 Andreas Schwab <schwab@suse.de>
787
788 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
789 avoid aliasing issue.
790
791 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
792
793 * config/tc-s390.c (s390_arch_size): Initialize to zero.
794 (current_arch_mask): Rename to current_mode_mask.
795 (current_arch_requested): Remove variable.
796 (current_cpu): New variable.
797 (init_default_arch): Set defaults values for s390_arch_size,
798 current_mode_mask and current_cpu.
799 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
800 (md_begin): Replace current_arch_mask by current_cpu.
801 (md_assemble): Adapt check and error message to current_mode_mask and
802 current_cpu.
803
804 2003-03-09 James E Wilson <wilson@tuliptree.org>
805
806 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
807 * read.c (get_line_sb): Return end of line character or '\n' if
808 it is zero or non-existent.
809
810 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
811
812 * config/tc-mips.c (mips_validate_fix): New function.
813 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
814 (mips_validate_fix): Declare.
815
816 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
817
818 * Reverted 2003-03-02's patch.
819
820 2003-03-11 Steve Ellcey <sje@cup.hp.com>
821
822 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
823 (TC_DWARF2_EMIT_OFFSET): Provide default.
824 (out_debug_aranges, out_debug_info): Use it.
825 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
826 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
827 (ia64_gen_real_reloc_type): ... here.
828 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
829
830 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
831
832 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
833 (s_mips_ent): Likewise.
834
835 2003-03-04 Dmitry Diky <diwil@mail.ru>
836
837 * config/tc-msp430.c (mcu_types): Add recently announced x1122
838 and x1123 devices, add missed x437.
839 (md_show_usage): Sort device list.
840
841 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
842
843 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
844 (md_begin): Use preset_target_arch.
845 (md_longopts): Make isa option unconditional.
846 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
847 set preset_target_arch.
848 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
849 by -S_GET_VALUE (fixP->fx_subsy).
850 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
851 and the addend is 0.
852 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
853 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
854
855 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
856
857 * config/tc-mips.c (append_insn): Add handling of
858 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
859 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
860 misaligned address and reange overflow.
861 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
862 earlier warnings about misaligned address and reange overflow.
863 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
864 (md_apply_fix): Likewise. Fix warning output.
865 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
866 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
867 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
868
869 2003-02-21 Nick Clifton <nickc@redhat.com>
870
871 * NEWS: Mention availability of test generator program.
872
873 2003-02-21 Miles Bader <miles@gnu.org>
874
875 * config/tc-v850.c (system_registers): Add v850e debug registers.
876 (system_register_name): Accept up to 27 (the last v850e sys register).
877
878 2003-02-21 Bob Wilson <bob.wilson@acm.org>
879
880 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
881 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
882 Capitalize section headings consistently. Format index entries more
883 consistently. Unconditionalize text about whether text and data
884 sections are alterable. Use @ifnottex for alternatives to @tex output
885 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
886 .size and .type directives. Be more polite about bad bug reports.
887 Move FDL into a separate file.
888 * doc/fdl.texi: New file.
889
890 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
891
892 * config/tc-mips.c (prev_reloc_op_frag): New variable.
893 (macro): Check it to decide whether a new frag is needed.
894 (my_getSmallExpression): Set it.
895
896 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
897
898 * cgen.c: Fix typo: intial -> initial.
899
900 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
901
902 * app.c (do_scrub_chars): Handle '||' in two states.
903
904 2003-02-13 Alan Modra <amodra@bigpond.net.au>
905
906 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
907 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
908
909 2003-02-11 Uwe Stieber <uwe@wwws.de>
910
911 * configure.in: Add support for kaOS as cross build target system.
912 * configure: Regenerated.
913
914 2003-02-10 Nick Clifton <nickc@redhat.com>
915
916 * config/tc-arm.c (md_begin): If the Maverick co-processor is
917 selected, set the EF_ARM_MAVERICK_FLOAT flag and
918 bfd_mach_arm_ep9312 machine number.
919
920 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
921
922 * config/tc-mips.c (reloc_needs_lo_p): New function.
923 (fixup_has_matching_lo_p): New function.
924 (append_insn): Use reloc_needs_lo_p to check whether a relocation
925 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
926 if that fixup already has a matching %lo(). Don't call frag_wane here.
927 (macro): Call frag_wane here if the last unmatched hi was in the
928 current frag.
929 (pic_need_relax): New function, split out from...
930 (md_estimate_size_before_relax): ...here.
931 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
932 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
933
934 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
935
936 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
937
938 2003-02-06 Alan Modra <amodra@bigpond.net.au>
939
940 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
941 x@toc+off works.
942
943 2003-02-05 Alan Modra <amodra@bigpond.net.au>
944
945 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
946 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
947 accept x@got+off etc.
948 (md_assemble): Handle TLS relocs.
949 (ppc_force_relocation): Force for all TLS relocs.
950 (ppc_fix_adjustable): Likewise.
951 (md_apply_fix3): Handle TLS relocs.
952
953 2003-02-04 Alan Modra <amodra@bigpond.net.au>
954
955 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
956 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
957
958 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
959
960 * config/tc-mips.c (enum small_ex_type): Remove.
961 (imm_unmatched_hi): Remove.
962 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
963 argument from calls to append_insn.
964 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
965 instead.
966 (macro_build): Update append_insn calls.
967 (mips16_macro_build, macro_build_lui): Likewise.
968 (mips_ip): Rework handling of small expressions. Move explicit
969 relocation handling into my_getSmallExpression. Assume that the
970 value of 'o' operands is zero if there is only one bracketed
971 expression left.
972 (percent_op): Make constant. Record the BFD relocation code
973 associated with each operator.
974 (my_getSmallParser, my_getPercentOp): Remove.
975 (parse_relocation): New function.
976 (my_getSamllExpression): Rework. Fill in relocations here
977 rather than in mips_ip.
978
979 2003-01-29 Nick Clifton <nickc@redhat.com>
980
981 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
982 assembler's handling of # <linenum> "<filename>" directives work.
983
984 2003-01-28 Jakub Jelinek <jakub@redhat.com>
985
986 * dwarf2dbg.c: Include filenames.h.
987 (struct file_entry): Make filename const char *.
988 (dirs, dirs_in_use, dirs_allocated): New variables.
989 (get_filenum): Add NUM argument. Build directory table.
990 (dwarf2_where): Adjust caller.
991 (dwarf2_directive_file): Use get_filenum to allocate
992 slot in file and directory tables.
993 (dwarf2_directive_loc): Recreate full filename from
994 directory and filename part if needed for listing.
995 (out_file_list): Output directory table.
996 Output main source file dirname before its filename.
997
998 2003-01-28 Dmitry Diky <diwil@mail.ru>
999
1000 * config/tc-msp430.c: Replace occurences of 'tolower' with
1001 'TOLOWER'.
1002
1003 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1004
1005 * config/tc-ia64.c (dot_vframesp): Correct error message.
1006 (dot_vframepsp): Ditto.
1007
1008 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1009
1010 * configure.in (em): Set to irix on all Irix systems.
1011 * configure: Rebuilt.
1012 * config/te-irix.h: New file.
1013 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1014 whether to use Irix-specific 64-bit format.
1015
1016 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1017
1018 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1019
1020 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1021
1022 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1023 (tc_gen_reloc): Handle TLS relocs.
1024 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1025 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1026 relocs.
1027 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1028 (obj_elf_type): Handle tls_object.
1029
1030 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1031
1032 * config/tc-s390.c (s390_tls_suffix): New function.
1033 (elf_suffix_type): Add suffix enums for TLS relocations.
1034 (s390_elf_suffix): Add suffix strings for TLS relocations.
1035 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1036 bfd relocations.
1037 (md_gather_operands): Map new instruction operand/elf suffix
1038 combinations for TLS to bfd relocations.
1039 (tc_s390_fix_adjustable): Add new TLS relocations.
1040 (tc_s390_force_relocation): Likewise.
1041 (md_apply_fix3): Likewise.
1042
1043 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1044
1045 * as.h: Update copyright date.
1046 * symbols.c: Likewise.
1047 * config/tc-d10v.h: Likewise.
1048 * config/tc-fr30.h: Likewise.
1049 * config/tc-i960.h: Likewise.
1050 * config/tc-mips.h: Likewise.
1051
1052 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1053 (MD_APPLY_SYM_VALUE): Move.
1054
1055 2003-01-23 Nick Clifton <nickc@redhat.com>
1056
1057 * NEWS: Announce sh2e support.
1058
1059 Add sh2e support:
1060 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1061 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1062 (sh_elf_final_processing): Handle arch_sh2e.
1063
1064 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1065
1066 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1067 * symbols.h (S_FORCE_RELOC): Likewise.
1068 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1069 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1070 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1071 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1072 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1073 * write.c (generic_force_reloc): New function.
1074 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1075 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1076 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1077 * as.h (generic_force_reloc): Declare.
1078 * doc/internals.texi (S_FORCE_RELOC): Update.
1079 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1080
1081 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1082 generic_force_reloc.
1083 (alpha_fix_adjustable): Likewise.
1084 * config/tc-arm.c (arm_force_relocation): Likewise.
1085 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1086 * config/tc-frv.c (frv_force_relocation): Likewise.
1087 * config/tc-i386.c (md_apply_fix3): Likewise.
1088 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1089 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1090 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1091 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1092 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1093 * config/tc-mips.c (mips_force_relocation): Likewise.
1094 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1095 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1096 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1097 * config/tc-sh.c (sh_force_relocation): Likewise.
1098 (md_pcrel_from_section): Likewise.
1099 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1100 * config/tc-v850.c (v850_force_relocation): Likewise.
1101 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1102 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1103 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1104 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1105
1106 * config/tc-d10v.c (d10v_force_relocation): Delete.
1107 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1108 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1109 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1110 * config/tc-fr30.c (fr30_force_relocation): Delete.
1111 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1112 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1113 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1114 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1115 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1116 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1117 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1118 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1119 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1120 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1121 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1122 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1123 * config/tc-i386.c (i386_force_relocation): Delete.
1124 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1125 BFD_ASSEMBLER.
1126 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1127 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1128 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1129 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1130 S_FORCE_RELOC.
1131 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1132 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1133
1134 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1135
1136 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1137 sh64_elf_section_data.
1138 * config/tc-sh64.h: Include elf32-sh64.h.
1139 * config/tc-m68hc11.c: Don't include stdio.h.
1140 (md_show_usage): Fix missing continuation.
1141 * Makefile.am: Run "make dep-am".
1142 * Makefile.in: Regenerate.
1143
1144 2003-01-22 Nick Clifton <nickc@redhat.com>
1145
1146 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1147
1148 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1149
1150 * configure.in: Handle *-*-aros*.
1151 * configure: Regenerated from configure.in.
1152
1153 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1154
1155 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1156 gotplt and pltoff relocations.
1157 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1158 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1159 gotplt and pltoff to bfd relocations.
1160 (md_gather_operands): Map new instruction operand/elf suffix
1161 combinations to bfd relocations.
1162 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1163 to the list of unadjustable relocations.
1164 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1165 and pltoff relocations.
1166 (md_apply_fix3): Add the new relocations.
1167
1168 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1169
1170 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1171 with a subsy symbol.
1172
1173 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1174
1175 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1176 of relocs for memory bank addressing.
1177
1178 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1179
1180 * config/tc-m68hc11.c (md_show_usage): Update usage.
1181 (md_parse_option): Recognize -m68hcs12.
1182 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1183 HCS12.
1184 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1185
1186 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1187
1188 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1189
1190 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1191
1192 * Makefile.am: Run "make dep-am".
1193 * Makefile.in: Regenerate.
1194 * po/POTFILES.in: Regenerate.
1195
1196 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1197
1198 * read.c (get_absolute_expr): New, split out from..
1199 (get_absolute_expression): ..here.
1200 * read.h (get_absolute_expr): Declare.
1201 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1202 Trim size to arch bits_per_address, and test for negative input
1203 via get_absolute_expr.
1204
1205 2003-01-07 DJ Delorie <dj@redhat.com>
1206
1207 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1208 on operand type.
1209 (xstormy16_md_apply_fix3): Use adjustment.
1210
1211 2003-01-02 Ben Elliston <bje@redhat.com>
1212
1213 * configure.in: Add iq2000-elf target.
1214 * configure: Regenerate.
1215 * config/tc-iq2000.c: New file.
1216 * config/tc-iq2000.h: Likewise.
1217 * po/gas.pot: Regenerate.
1218
1219 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1220
1221 * config/tc-mips.c: Update copyright years to include 2003.
1222 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1223 Additionally, clean up their code slightly and clean up their
1224 comments some more.
1225
1226 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1227
1228 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1229
1230 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1231 $(CPU_DOCS)".
1232 * doc/Makefile.in: Regenerate.
1233
1234 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1235
1236 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1237 of .init and .fini sections for array initializers and finalizers.
1238
1239 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1240
1241 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1242 the "+D" operand, which will be used only by the disassembler.
1243
1244 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1245
1246 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1247 CPU variants.
1248 * configure: Regenerate.
1249 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1250 (macro_build): Handle "K" operand.
1251 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1252 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1253 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1254 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1255 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1256 (validate_mips_insn): Implement "+" as a way to extend the
1257 allowed operands, and implement "K", "+A", "+B", and "+C"
1258 operands.
1259 (OPTION_MIPS32R2): New define.
1260 (md_longopts): Add entry for OPTION_MIPS32R2.
1261 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1262 (md_parse_option): Handle OPTION_MIPS32R2.
1263 (s_mipsset): Reimplement handling of ".set mipsN" options
1264 and add support for ".set mips32r2".
1265 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1266 (md_show_usage): Document "-mips32r2" option.
1267 * doc/as.texinfo: Document "-mips32r2" option.
1268 * doc/c-mips.texi: Likewise.
1269
1270 2002-12-30 Dmitry Diky <diwil@mail.ru>
1271
1272 * configure.in: Add msp430 target.
1273 * configure: Regenerate.
1274 * Makefile.am: Add msp430 target.
1275 * Makefile.in: Regenerate.
1276 * config/tc-msp430.c: New file: msp430 assembler.
1277 * config/tc-msp430.h: New file: target macros for msp430.
1278 * doc/Makefile.am: Add msp430 target.
1279 * doc/Makefile.in: Regenerate.
1280 * doc/as.texinfo: Include msp430 documenation.
1281 * doc/all.texi: Enable msp430 documentation.
1282 * doc/c-msp430.texi: New file: document msp430 specific features
1283 of the assembler.
1284
1285 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1286
1287 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1288 (dwarf2_finish): Use it.
1289 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1290 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1291
1292 2002-12-20 DJ Delorie <dj@redhat.com>
1293
1294 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1295 BFD_RELOC_XSTORMY16_12.
1296
1297 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1298
1299 * doc/as.texinfo (Invoking): Typo fix.
1300 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1301
1302 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1303
1304 * doc/c-alpha.texi: Fix typos.
1305 * doc/c-arm.texi: Likewise.
1306 * doc/c-d10v.texi: Likewise.
1307 * doc/c-i370.texi: Likewise.
1308 * doc/c-i960.texi: Likewise.
1309 * doc/c-ia64.texi: Likewise.
1310 * doc/c-mmix.texi: Likewise.
1311 * doc/c-ns32k.texi: Likewise.
1312 * doc/c-pdp11.texi: Likewise.
1313 * doc/c-pj.texi: Likewise.
1314 * doc/c-sh64.texi: Likewise.
1315 * doc/c-sparc.texi: Likewise.
1316 * doc/c-tic54x.texi: Likewise.
1317 * doc/c-v850.texi: Likewise.
1318 * doc/c-vax.texi: Likewise.
1319 * doc/internals.texi: Likewise.
1320
1321 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1322
1323 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1324 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1325 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1326 arrange not to issue warnings about use of AT when AT is not
1327 actually used.
1328
1329 2002-12-17 Nick Clifton <nickc@redhat.com>
1330
1331 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1332 prevent it being confused with -k.
1333
1334 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1335
1336 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1337 has already been set up, use it.
1338
1339 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1340
1341 * ChangeLog-9295: Fix a typo.
1342 * README: Likewise.
1343 * config/tc-d10v.c: Fix a comment typo.
1344 * config/tc-dlx.c: Likewise.
1345 * config/tc-h8300.h: Likewise.
1346 * config/tc-h8500.h: Likewise.
1347 * config/tc-mips.c: Likewise.
1348 * config/tc-s390.c: Likewise.
1349 * config/tc-sh.h: Likewise.
1350 * config/tc-tic80.h: Likewise.
1351 * config/tc-w65.h: Likewise.
1352 * config/tc-z8k.c: Likewise.
1353 * config/tc-z8k.h: Likewise.
1354 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1355
1356 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1357
1358 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1359 Simplify sign extension. Remove redundant unsigned < 0 test.
1360 * config/tc-i960.c (md_ri_to_chars): Prototype.
1361 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1362 (dump_literals): Init brarsym, and test later instead of isforce.
1363
1364 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1365 (parse): Constify line and lineptr.
1366 (md_begin): Calculate endop here.
1367
1368 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1369
1370 * config/obj-vms.c: Formatting. Include fnctl.h.
1371 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1372 (Object_Record_Offset): Make it a size_t.
1373 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1374 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1375 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1376 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1377 (vms_fixup_data_section <data_size>): Add here instead.
1378 * config/e-criself.c: Fix typo in last change.
1379
1380 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1381
1382 * write.c (write_object_file): Fix signed/unsigned warning.
1383 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1384 * config/e-criself.c (criself_bfd_name): Prototype.
1385 * config/obj-aout.c (s_sect): Remove unused function.
1386 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1387 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1388 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1389 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1390 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1391 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1392 (vms_fixup_text_section <text_siz>): Likewise.
1393 (synthesize_data_segment <data_size>): Likewise.
1394 (vms_fixup_xtors_section <sect_no>): Likewise.
1395 (structure_count): Don't use implicit int type.
1396 * config/tc-a29k.c (insert_sreg): Prototype.
1397 (define_some_regs): Prototype, make static.
1398 (parse_operand): Likewise.
1399 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1400 (md_show_usage <stream>): Likewise.
1401 (md_section_align <segment>): Likewise.
1402 (md_convert_frag <all args>): Likewise.
1403 (md_estimate_size_before_relax <all args>): Likewise.
1404 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1405 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1406 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1407 (md_undefined_symbol <name>): Likewise.
1408 (md_convert_frag <all args>): Likewise.
1409 (write_long <opcode>): Likewise.
1410 (tc_gen_reloc <seg>): Likewise.
1411 (md_estimate_size_before_relax <all args>): Likewise.
1412 (md_apply_fix3 <seg>): Likewise.
1413 (s_d30v_align <ignore>): Likewise.
1414 (build_insn): Correct format string.
1415 (md_apply_fix3): Likewise.
1416 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1417 (md_undefined_symbol <name>): Likewise.
1418 (md_convert_frag <all args>): Likewise.
1419 (md_cgen_lookup_reloc <insn>): Likewise.
1420 (md_begin): Delete unused vars.
1421 (md_assemble): Likewise.
1422 (md_estimate_size_before_relax): Likewise.
1423 (fr30_relax_frag): #if 0 out, seems unused.
1424 (md_atof): Remove declaration of atof_ieee.
1425 (restore_colon): Prototype.
1426 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1427 (frv_find_in_vliw): Likewise.
1428 (frv_debug_tomcat): Likewise.
1429 (frv_adjust_vliw_count): Likewise.
1430 (frv_tomcat_shuffle): Likewise.
1431 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1432 frv_find_in_vliw call.
1433 (md_atof): Remove declaration of atof_ieee.
1434 * config/tc-h8500.c (cons): Delete declaration.
1435 (md_begin <opcode>): Constify.
1436 (displacement_size, immediate_size, absolute_size): Remove.
1437 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1438 (tc_crawl_symbol_chain <headers>): Likewise.
1439 (md_undefined_symbol <name>): Likewise.
1440 (tc_headers_hook <headers>): Likewise.
1441 (md_parse_option <c,arg>): Likewise.
1442 (md_show_usage <stream>): Likewise.
1443 (md_convert_frag <headers, seg>): Likewise.
1444 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1445 (md_atof): Remove declaration of atof_ieee.
1446 (tc_aout_fix_to_chars): Remove unused function.
1447 (parse_reg): Prototype.
1448 (parse_exp): Prototype.
1449 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1450 (parse_reglist): Prototype.
1451 (get_operand): Prototype.
1452 (get_operands): Prototype.
1453 (get_specific): Prototype. Make "this_index" signed.
1454 (check): Prototype, make static.
1455 (insert): Prototype
1456 (build_relaxable_instruction): Prototype, make static.
1457 (build_bytes): Prototype.
1458 (wordify_scb): Prototype.
1459 * config/tc-h8500.h (start_label): Declare.
1460 (tc_coff_sizemachdep): Declare.
1461 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1462 (i370_rmode <unused>): Likewise.
1463 (i370_csect <unused>): Likewise.
1464 (i370_dc <unused>): Likewise.
1465 (i370_ds <unused>): Likewise.
1466 (i370_elf_lcomm <unused>): Likewise.
1467 (i370_ltorg <ignore>): Likewise.
1468 (i370_using <ignore>): Likewise.
1469 (i370_drop <ignore>): Likewise.
1470 (i370_byte <ignore>): Likewise.
1471 (i370_tc <ignore>): Likewise.
1472 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1473 (md_convert_frag <all args>): Likewise.
1474 (md_undefined_symbol <name>): Likewise.
1475 (md_pcrel_from_section <sec>): Likewise.
1476 (tc_gen_reloc <seg>): Likewise.
1477 (i370_section_letter): #if 0 unused functions.
1478 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1479 (symbol_locate): Prototype.
1480 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1481 (md_number_to_disp, md_number_to_field): Remove.
1482 (md_apply_fix3): Correct format string and cast "fup".
1483 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1484 (s_endian <ignore>): Likewise.
1485 (md_undefined_symbol <name>): Likewise.
1486 (tc_crawl_symbol_chain <headers>): Likewise.
1487 (tc_set_bal_of_call): Likewise.
1488 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1489 (i960_handle_align <fragp>): Likewise.
1490 (i960_validate_fix <this_segment_type>): Likewise
1491 (tc_gen_reloc <section>): Likewise.
1492 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1493 (struct memS, struct regop): Forward declare.
1494 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1495 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1496 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1497 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1498 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1499 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1500 (md_number_to_field): Likewise.
1501 (md_number_to_disp): Remove unused function.
1502 (md_atof): Remove declaration of atof_ieee.
1503 (md_apply_fix3): Correct md_number_to_imm call.
1504 * config/tc-ip2k.c (md_assemble): Warning fix.
1505 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1506 (fill_insn <ignore>): Likewise.
1507 (debug_sym <ignore>): Likewise.
1508 (md_undefined_symbol <name>): Likewise.
1509 (m32r_scomm <ignore>): Likewise.
1510 (md_convert_frag <abfd>): Likewise.
1511 (md_cgen_lookup_reloc <insn>): Likewise.
1512 (m32r_record_hi16 <seg>): Likewise.
1513 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1514 (allow_m32rx): Prototype.
1515 (first_writes_to_seconds_operands): Prototype.
1516 (writes_to_pc): Prototype.
1517 (can_make_parallel): Prototype.
1518 (make_parallel): Prototype.
1519 (target_make_parallel): Prototype.
1520 (assemble_two_insns): Prototype.
1521 (m32r_record_hi16): Prototype.
1522 (md_atof): Remove declaration of atof_ieee.
1523 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1524 (m32r_force_relocation): Prototype.
1525 (m32r_elf_section_change_hook): Prototype.
1526 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1527 (md_show_usage): Fix signed/unsigned warning.
1528 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1529 (calcop): Ditto for reg_prefix var.
1530 (hexval): Add cast to fix signed/unsigned warning.
1531 (md_number_to_disp): Delete unused function.
1532 (md_number_to_field): Likewise.
1533 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1534 (match_name): Prototype.
1535 (get_bf2): Prototype.
1536 (get_bf_offset_expression): Prototype.
1537 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1538 (md_undefined_symbol <ignore>): Likewise.
1539 (md_create_short_jump <all args>): Likewise.
1540 (md_create_long_jump <all args>): Likewise.
1541 (md_convert_frag <abfd, sec>): Likewise.
1542 (md_apply_fix3 <segment>): Likewise.
1543 (md_section_align <segment>): Likewise.
1544 (md_pcrel_from_section <sec>): Likewise.
1545 (tc_gen_reloc <section>): Likewise.
1546 (reg_m, reg_n, immediate): Delete unused vars.
1547 (dump_literals): Fix signed/unsigned warning.
1548 (enter_literal): Likewise.
1549 (parse_imm): Likewise. Also fix format string.
1550 (parse_mem): Remove unused var.
1551 (md_assemble <LS>): Abort on unexpected inst.
1552 (md_atof): Remove declaration of atof_ieee.
1553 (md_parse_option): Remove unused vars.
1554 (md_apply_fix3): Fix format strings, cast args.
1555 (tc_gen_reloc): Delete unused var.
1556 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1557 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1558 (md_undefined_symbol <name>): Likewise.
1559 (md_convert_frag <abfd>): Likewise.
1560 (tc_gen_reloc <seg>): Likewise.
1561 (check_operand <insn>): Likewise.
1562 (md_convert_frag): Fix format strings.
1563 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1564 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1565 (md_atof): Remove declaration of atof_ieee.
1566 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1567 (md_apply_fix3): Fix bogus >>='s.
1568 (md_undefined_symbol): Delete unused var.
1569 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1570 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1571 (fake_opcode): Adjust for pj_opc_int_t change.
1572 (md_begin): Likewise.
1573 (md_assemble): Likewise.
1574 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1575 instead of non-existent third arg of parse_exp_save_ilp.
1576 (md_parse_option): Correct "little" and "big" calls.
1577 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1578 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1579 (tc_gen_reloc <section>): Likewise.
1580 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1581 (debug): Rewrite using VA_* macros.
1582 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1583 (md_convert_frag): Likewise.
1584 (md_parse_option): Likewise.
1585 (md_show_usage): Likewise.
1586 (md_undefined_symbol): Likewise.
1587 (tc_gen_reloc): Likewise.
1588 (md_operand): Likewise.
1589 (tc_aout_pre_write_hook): Delete.
1590 (struct tic30_insn): Make "operands" unsigned.
1591 (struct tic30_par_insn): Likewise.
1592 (md_assemble): Likewise for "count", "i" and "numops".
1593 (tic30_parallel_insn): Likewise for vars here.
1594 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1595 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1596 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1597 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1598 (md_undefined_symbol): Likewise.
1599 (md_parse_option): Likewise.
1600 (md_convert_frag): Likewise.
1601 (tc_coff_symbol_emit_hook): Likewise.
1602 (md_atof): Remove declaration of atof_ieee.
1603 (const_overflow): Warning fixes, tidy.
1604 (get_operands): Delete unused vars.
1605 (internal_error_a): Adjust format string to expect a long for arg.
1606 (find_opcode): Warning fixes, simplify.
1607 (build_insn): Cast internal_error_a arg.
1608 (md_begin): Likewise.
1609 (md_apply_fix3): Likewise.
1610 (md_assemble): Delete unused var.
1611 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1612 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1613 (whatreg, parse_reg, parse_exp): Make static, prototype.
1614 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1615 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1616 (get_operand, get_operands, get_specific, newfix): Likewise.
1617 (apply_fix, build_bytes): Likewise.
1618 (md_atof): Remove declaration of atof_ieee.
1619 (tc_aout_fix_to_chars): Delete.
1620 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1621 Fix s_unseg call.
1622 (md_parse_option): Fix s_segm and s_unseg calls.
1623
1624 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1625
1626 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1627 Adjust callers.
1628 (RELAX_BRANCH_RELOC_S2): Delete.
1629 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1630 Do not handle BFD_RELOC_16_PCREL.
1631 (macro_build, mips_ip): Likewise.
1632 (md_pcrel_from): Return 4 for undefined symbols regardless of
1633 mips_pic.
1634 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1635 Don't dereference howto if no such relocation is available.
1636 Do not apply hack for in-place zero addend in NEWABI.
1637 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1638
1639 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1640 Alan Modra <amodra@bigpond.net.au>
1641
1642 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1643 (TC_LINKRELAX_FIXUP): Add comments.
1644
1645 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1646
1647 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1648 avoid warnings.
1649 (r_register_name, xr_register_name): Add prototype declarations.
1650
1651 2002-12-08 H.J. Lu <hjl@gnu.org>
1652
1653 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1654 copied from tc-i386.c.
1655
1656 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1657
1658 Fix Bug savannah/1825:
1659 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1660 (md_relax_table): Define specific relax for PC-rel offsets.
1661 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1662 (m68hc11_relax_frag): Handle the new relax code.
1663 (md_convert_frag): Likewise.
1664 (md_estimate_size_before_relax): Likewise.
1665
1666 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1667
1668 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1669
1670 2002-12-05 Richard Henderson <rth@redhat.com>
1671
1672 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1673 (ia64_gen_real_reloc_type): Handle it.
1674 (pseudo_func): Add @ltoffx.
1675 (md_begin): Build .<ltoffx>.
1676 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1677
1678 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1679
1680 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1681 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1682 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1683 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1684 COFF to call arm_force_relocation.
1685
1686 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1687
1688 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1689 instruction.
1690 (emit_one_bundle): Handle "hint" instruction.
1691 (operand_match): Match IA64_OPND_AR_CSD.
1692
1693 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1694
1695 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1696 inside #if.
1697
1698 2002-12-03 Nick Clifton <nickc@redhat.com>
1699
1700 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1701 .PPC.EMB.apuinfo sections.
1702
1703 2002-12-03 Richard Henderson <rth@redhat.com>
1704
1705 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1706
1707 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1708
1709 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1710 (cons, s_align_bytes): Delete declaration.
1711 (relax): Delete.
1712 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1713 strings common.
1714 (dot): Delete unused function.
1715 (w65_expression): Remove unused arg.
1716 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1717 call.
1718 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1719 parse_exp call.
1720 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1721 value.
1722 (check): Remove unused function.
1723 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1724 on unhandled switch case.
1725 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1726 "opcode".
1727 (tc_crawl_symbol_chain): Delete unused function.
1728 (tc_headers_hook): Likewise.
1729 (tc_Nout_fix_to_chars): Likewise.
1730 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1731 (md_parse_option): Likewise.
1732 (md_convert_frag): Likewise.
1733 (tc_coff_symbol_emit_hook): Likewise.
1734 (md_show_usage): Likewise.
1735 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1736 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1737 (w65_expression): Declare.
1738
1739 * po/POTFILES.in: Regenerate.
1740
1741 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1742 and ARM_ADRL_IMMEDIATE.
1743
1744 2002-12-02 Nick Clifton <nickc@redhat.com>
1745
1746 * gasp.c: Delete. It has been deprecated.
1747 * NEWS: Mention that gasp has been removed.
1748 * Makefile.am: Remove references to gasp.
1749 * makefile.vms: Likewise.
1750 * mpw-make.sed: Likewise.
1751 * Makeile.in: Regenerate.
1752 * doc/gasp.texi: Delete.
1753 * doc/Makefile.am: Remove references to gasp.texi.
1754 * doc/Makefile.in: Regenerate.
1755 * macro.c: Delete references to gasp.
1756 Remove use of comment_char function parameter as it is no longer
1757 needed.
1758 * macro.h: Update prototypes to remove comment_char parameter.
1759 Fix formatting.
1760 * read.c (read_a_source_file, s_irp): Remove comment_char
1761 parameter from invocation of functions in macro.c
1762
1763 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1764
1765 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1766
1767 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1768
1769 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1770 (tc_gen_reloc): Mark section param as not used.
1771
1772 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1773
1774 Fix Bug savannah/1825:
1775 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1776 that are not pc-relative.
1777 (m68hc11_relax_frag): Declare.
1778
1779 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1780 the offsetable indexed addressing modes (n,r).
1781 (build_insn): Cleanup some locals.
1782 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1783 relaxation of difference between two symbols of same section.
1784 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1785 only when this is a PC-relative operand and the offset is not absolute.
1786 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1787 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1788 be handled by m68hc11_relax_frag.
1789
1790 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1791
1792 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1793 (32-bit int, 64-bit double).
1794 (md_longopts): New options -mshort, -mlong, -mshort-double and
1795 -mlong-double to control the ABI.
1796 (md_show_usage): Update.
1797 (md_parse_option): Handle new options.
1798 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1799
1800 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1801
1802 * symbols.c (report_op_error): New function, broken out of ...
1803 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1804 operators.
1805
1806 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1807
1808 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1809 for BFD_RELOC_32_PLT_PCREL.
1810
1811 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1812
1813 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1814 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1815 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1816 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1817 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1818 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1819 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1820 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1821 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1822 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1823 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1824 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1825 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1826 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1827 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1828 TRUE/FALSE. Formatting.
1829
1830 2002-11-29 Nick Clifton <nickc@redhat.com>
1831
1832 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1833 assume a value of zero.
1834 (do_bkpt): Likewise.
1835
1836 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1837
1838 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1839 for TLS relocations.
1840
1841 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1842
1843 * config/tc-ia64.c (md_apply_fix3): Add default case.
1844
1845 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1846
1847 * symbols.c (S_SET_THREAD_LOCAL): New function.
1848 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1849 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1850 for TLS relocations.
1851 * config/tc-ia64.c (md_apply_fix3): Likewise.
1852 * config/tc-alpha.c (md_apply_fix3): Likewise.
1853
1854 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1855
1856 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1857 to entsize.
1858
1859 2002-11-26 DJ Delorie <dj@redhat.com.
1860
1861 * dwarf2dbg.c (scale_addr_delta): New.
1862 (size_inc_line_addr): Use it.
1863 (emit_inc_line_addr): Use it.
1864
1865 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1866
1867 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1868 (md_assemble): Don't pass on branches to constants as relaxable.
1869 Tweak comment.
1870
1871 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1872
1873 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1874
1875 2002-11-21 Randolph Chung <randolph@tausq.org>
1876
1877 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1878 only if they have default visibility.
1879
1880 2002-11-21 Richard Henderson <rth@redhat.com>
1881
1882 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1883 S_IS_DEFINED test.
1884
1885 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1886
1887 * config/tc-mcore.c (mcore_pool_count): New function.
1888 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1889
1890 2002-11-20 Klee Dienes <kdienes@apple.com>
1891
1892 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1893 coalesce the name fields to use the same pointer.
1894
1895 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1896 the name fields to use the same pointer.
1897 (get_specific): Check for opcodes with the same name using strcmp
1898 as well as comparing the pointer.
1899
1900 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1901
1902 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1903 fx_subsy non-NULL.
1904
1905 2002-11-19 Richard Henderson <rth@redhat.com>
1906
1907 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1908 visibility portion of st_other.
1909
1910 2002-11-19 Klee Dienes <kdienes@apple.com>
1911
1912 * config/tc-h8300.c (struct h8_instruction): New type, used to
1913 wrap h8_opcodes with length, noperands, idx, and size fields
1914 (computed at run-time).
1915 (h8_instructions): New variable.
1916 (md_begin): Allocate the storage for h8_instructions. Fill
1917 h8_instructions with pointers to the appropriate opcode and the
1918 correct value for the additional fields.
1919 (clever_message): Update to use h8_instructions instead of
1920 h8_opcodes.
1921 (build_bytes): Ditto.
1922 (get_specific): Ditto.
1923 (md_assemble): Ditto.
1924
1925 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1926
1927 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1928 adjustments to symbols in merge sections.
1929
1930 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1931
1932 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1933
1934 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1935
1936 * dwarf2dbg.h (dwarf2_format): New enum.
1937 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1938 (out_debug_line, out_debug_info): Add code for handling 64-bit
1939 DWARF 2 formats.
1940 * config/tc-mips.h (mips_dwarf2_format): Declare.
1941 * config/tc-mips.c (mips_dwarf2_format): New function.
1942 * doc/internals.texi (DWARF2_FORMAT): Document.
1943
1944 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1945
1946 * config/tc-mips.c (s_change_section): Make sure input buffer
1947 is not accessed past the end. Don't hand
1948 obj_elf_change_section a pointer into the input buffer.
1949
1950 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1951
1952 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1953 GOT_LO16 on NEWABI.
1954
1955 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1956
1957 * config/tc-tic4x.c: Fixed proper commandline
1958 parameters. Added support for new opcode-list format. General
1959 error message fixups.
1960 (c4x_inst_add): Reject insn not for our CPU
1961 (md_begin): Added matrix for setting the proper opcode-level &
1962 device-flags according to cpu type and revision. Rewrite the
1963 opcode hasher.
1964 (c4x_operand_parse): Fix opcode bug
1965 (c4x_operands_match): New function argument. Added dry-run
1966 mechanism, that is optional error generation. Added constraint 'i'
1967 and 'j'.
1968 (c4x_insn_check): Added new function for post-verification of the
1969 generated insn.
1970 (md_assemble): Check all opcodes before croaking because of an
1971 argument mismatch. Need this to be able to fully support
1972 ortogonally arguments.
1973 (md_parse_options): Revised commandprompt swicthes and added new
1974 ones.
1975 (md_show_usage): Complete rewrite of printout.
1976
1977 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1978
1979 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1980 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1981 warning when using constant direct bigger than 2^16. Add the new
1982 arguments.
1983
1984 2002-11-11 Christopher Faylor <cgf@redhat.com>
1985
1986 * configure.in: Use .gdbinit under Cygwin.
1987 * configure: Regenerate.
1988
1989 2002-11-11 Christopher Faylor <cgf@redhat.com>
1990
1991 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1992 STRICT_PE_FORMAT.
1993
1994 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1995
1996 * config/tc-tic4x.c: Declare as many functions as possible as
1997 static. Maintenance on the general indenting. Removed unnecessary
1998 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1999 function. Add support for new DSP, TMS320VC33. Fix bug for
2000 converting flonum constants.
2001 (c4x_do_align): Add proper align handling. Setup align to insert
2002 NOP's.
2003 (c4x_gen_to_words): Support for extended TI type floats.
2004 (md_atof): Proper dumping of multiple-word littlenums.
2005 (c4x_atof): Added support for extended TI type floats.
2006 (c4x_stringer): Added new function to handle compact strings.
2007 (c4x_emit_char): Added new function argument to handle custom
2008 length inserts, like single-byte strings.
2009 * config/tc-tic4x.h: Add proper align handling with NOP's.
2010 * Makefile.am: Added tic4x dependecy
2011 * Makefile.in: Regenerate
2012
2013 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2014
2015 * macro.c (get_any_string): Correct logic for not going beyond end
2016 of in->ptr[].
2017
2018 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2019
2020 * config/tc-mmix.c (get_putget_operands): Mark both possible
2021 operands as invalid at beginning.
2022
2023 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2024 Initialize target of fixup to zero.
2025
2026 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2027
2028 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2029 NEWABI, but we should still emit HI16_S for non-PIC n32.
2030
2031 2002-11-06 Richard Henderson <rth@redhat.com>
2032
2033 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2034 (alpha_fix_adjustable): ... here.
2035 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2036
2037 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2038
2039 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2040 of a label.
2041
2042 2002-11-05 H.J. Lu <hjl@gnu.org>
2043
2044 * config/tc-mips.c (support_64bit_objects): Check *l before it
2045 is freed.
2046
2047 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2048
2049 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2050 SEC_LOAD flags for sections marked as 's'.
2051
2052 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2053
2054 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2055 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2056 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2057 default.
2058
2059 * dep-in.sed: Fix typo.
2060
2061 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2062
2063 * configure.in: Update ARM CPU patterns.
2064 * configure: Regenerated.
2065
2066 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2067
2068 * itbl-lex.l: Use #include <> for generated headers.
2069 * itbl-ops.c: Likewise.
2070
2071 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2072
2073 * doc/gasp.texi: Fix typo in deprecation note.
2074
2075 2002-10-23 Nick Clifton <nickc@redhat.com>
2076
2077 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2078 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2079
2080 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2081
2082 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2083 (tc_frob_file_before_adjust): Don't define.
2084 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2085 function.
2086 (mmix_frob_file_before_adjust): Remove ineffective function.
2087
2088 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2089
2090 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2091 (cris_relax_frag): New function.
2092 (md_estimate_size_before_relax) <case ENCODE_RELAX
2093 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2094 expressions that will become absolute expressions to relaxation.
2095 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2096 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2097 value, not distance to symbol.
2098 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2099 Ditto. Correct placement of fixup.
2100 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2101 (gen_bdap): Ditto.
2102 * config/tc-cris.h (cris_relax_frag): Declare.
2103 (md_relax_frag): Define.
2104
2105 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2106
2107 * config/obj-elf.c (special_sections): Use correct types for init
2108 array sections.
2109 (obj_elf_change_section): Don't mess with init array section type.
2110
2111 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2112
2113 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2114 for relocs against symbols in a merged section.
2115
2116 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2117
2118 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2119 table as register names.
2120
2121 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2122
2123 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2124 for option -m31.
2125
2126 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2127
2128 * expr.c (operand): Add support for n.nn flonums.
2129
2130 2002-10-17 Johannes Stezenbach <js@convergence.de>
2131
2132 * itbl-parse.y (entry): Provide empty action.
2133
2134 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2135
2136 * configure.in (BFDVER_H): Set and subst.
2137 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2138 * Makefile.am: Run "make dep-am".
2139 (BFDVER_H): Define.
2140 * configure: Regenerate.
2141 * Makefile.in: Regenerate.
2142 * doc/Makefile.in: Regenerate.
2143
2144 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2145
2146 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2147 (MD_APPLY_SYM_VALUE): Define for PE too.
2148
2149 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2150
2151 * Makefile.am: Run "make dep-am".
2152 (CPU_OBJ_VALID): sh64 coff is invalid.
2153 * as.c: #include "bfdver.h".
2154 * Makefile.in: Regenerate.
2155 * config.in: Regenerate.
2156
2157 2002-10-14 Momchil Velikov <velco@fadata.bg>
2158
2159 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2160
2161 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2162
2163 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2164 * configure: Regenerate.
2165
2166 2002-10-13 Eric Christopher <echristo@redhat.com>
2167 Alexandre Oliva <aoliva@redhat.com>
2168
2169 * config/tc-mips.c (s_gpdword): New function.
2170 (mips_pseudo_table): Add .gpdword.
2171 (mips_need_elf_addend_fixup): never for NEWABI.
2172 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2173 GPREL32 as done.
2174 (s_cpadd): Generate .cpadd on NEWABI.
2175
2176 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2177
2178 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2179
2180 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2181
2182 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2183 (md_relax_frag): Adjust macro.
2184 * config/tc-mips.c (mips_relax_branch): New variable.
2185 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2186 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2187 (RELAX_MIPS16_P): Adjust.
2188 (append_insn): Emit branch to non-constant in a frag_var if
2189 branch-relaxation is desirable and possible.
2190 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2191 (OPTION_ELF_BASE): Adjust.
2192 (md_parse_option): Handle new options.
2193 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2194 branch relaxation.
2195 (relaxed_branch_length): New function.
2196 (md_estimate_size_before_relax): Handle branch frags.
2197 (mips_relax_frag): Likewise.
2198 (md_convert_frag): Handle branch frags. Warn if branch is
2199 relaxed.
2200
2201 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2202
2203 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2204 emitted.
2205 (md_apply_fix3): Add TLS relocs.
2206 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2207 @DTPOFF.
2208
2209 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2210 Alan Modra <amodra@bigpond.net.au>
2211
2212 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2213 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2214
2215 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2216
2217 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2218 inside loop.
2219
2220 2002-10-09 Richard Shann <richard.shann@superh.com>
2221 Stephen Clarke <stephen.clarke@superh.com>
2222
2223 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2224 Linux environment.
2225
2226 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2227
2228 * contig/tc-sh.c (sh_local_pcrel): New.
2229 (sh_force_relocation): Use sh_local_pcrel.
2230 (md_pcrel_from_section): Check the relocation type whether it
2231 should be resolved locally. Use S_FORCE_RELOC.
2232
2233 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2234
2235 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2236 (TC_FORCE_RELOCATION): Tidy arg.
2237
2238 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2239 Ken Raeburn <raeburn@cygnus.com>
2240 Aldy Hernandez <aldyh@redhat.com>
2241 DJ Delorie <dj@redhat.com>
2242 Michael Meissner <meissner@redhat.com>
2243 Eric Christopher <echristo@redhat.com>
2244 Richard Sandiford <rsandifo@redhat.com>
2245
2246 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2247 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2248 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2249 (hilo_interlocks): True for CPU_VR5500.
2250 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2251 (mips_fix_vr4122_bugs): New.
2252 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2253 (mips_emit_delays): Likewise.
2254 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2255 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2256 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2257 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2258 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2259 (OPTION_ELF_BASE): Bump.
2260 (md_parse_option): Handle the new options.
2261 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2262 vr5400 and vr5500.
2263
2264 2002-09-29 H.J. Lu <hjl@gnu.org>
2265
2266 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2267 twice if howto->pcrel_offset is true.
2268
2269 2002-09-28 Matt Thomas <matt@3am-software.com>
2270 Jason Thorpe <thorpej@wasabisystems.com>
2271
2272 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2273 convert undefined references to GOT32/PLT32 if PIC code is
2274 requested. Fix comment.
2275
2276 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2277
2278 * config/tc-sh.c (sh_force_relocation): Return 0 for
2279 some PC relative relocations when not relaxing.
2280
2281 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2282
2283 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2284 Define them if not BFD_ASSEMBLER.
2285 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2286 @tlsld.
2287 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2288 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2289 (tc_gen_reloc): Handle x86-64 TLS relocs.
2290
2291 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2292
2293 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2294 fixups to current or absolute section.
2295
2296 2002-09-26 Jim Wilson <wilson@redhat.com>
2297
2298 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2299 and frag_more.
2300
2301 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2302
2303 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2304 capable configuration.
2305 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2306 generation.
2307 (mips_ip): Likewise.
2308
2309 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2310
2311 * config/tc-mips.c (append_insn): Fix jump overflow check.
2312
2313 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2314
2315 * config/tc-i386.c (process_operands): Warn about "lea" segment
2316 overrides.
2317
2318 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2319
2320 * write.c: Delete set_segment_vma and prototype. Update all callers.
2321
2322 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2323
2324 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2325 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2326 Rename "fseg" to "sym_seg".
2327 * Makefile.am: Run "make dep-am".
2328 * Makefile.in: Regenerate.
2329 * doc/Makefile.in: Regenerate.
2330
2331 2002-09-20 Nick Clifton <nickc@redhat.com>
2332
2333 * symbols.c (colon): Do not allow symbols to be created in the
2334 absolute section if WORKING_DOT_WORD is not defined and
2335 new_broken_words would require a new frag to be created.
2336
2337 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2338
2339 * expr.c (expr): Simplify foo-foo here.
2340 (clean_up_expression): Remove O_subtract code.
2341
2342 * write.h (struct fix): Add fx_dot_value.
2343 (dot_value): Declare.
2344 * write.c (dot_value): New var.
2345 (fix_new_internal): Save dot_value as fx_dot_value.
2346 (fixup_segment): Adjust fx_offset using fx_dot_value.
2347 * expr.c (expr): Update dot_value.
2348
2349 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2350
2351 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2352 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2353 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2354 if not defined.
2355 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2356 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2357 BFD_RELOC_386_TLS_GOTIE.
2358
2359 2002-09-19 Richard Henderson <rth@redhat.com>
2360
2361 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2362 branch type relocs.
2363 (alpha_force_relocation): Don't special-case branch type relocs.
2364
2365 2002-09-19 Nick Clifton <nickc@redhat.com>
2366
2367 * config/tc-m68k.c (select_control_regs): Handle situation where
2368 architecture has not yet been selected.
2369
2370 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2371
2372 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2373 (IS_SEXT_16BIT_NUM): New macro.
2374 (macro_build_ldst_constoffset): New function, to build a set of
2375 instructions to do a load or store from a constant offset relative
2376 to a given register.
2377 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2378 .cprestore pseudo-op.
2379
2380 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2381
2382 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2383
2384 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2385
2386 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2387
2388 2002-09-17 Stan Cox <scox@redhat.com>
2389
2390 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2391 (macro): Likewise for la. Likewise for ld.
2392 (mips_after_parse_args): Make -xgot optional, not the default.
2393 (md_apply_fix3): Allow composite relocation to set up gp.
2394 (tc_gen_reloc): Allow relaxing for newabi.
2395 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2396 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2397
2398 2002-09-17 Nick Clifton <nickc@redhat.com>
2399
2400 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2401 BFD_RELOC_ARM_IMMEDIATE has been done.
2402 (tc_gen_reloc): Do not issue reloc number of unimplemented
2403 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2404 their name is already in the error message - plus remove them
2405 from the default case.
2406
2407 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2408 behavior of instructions.
2409
2410 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2411
2412 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2413 Convert functions to K&R format.
2414
2415 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2416
2417 * config/tc-mips.c (pdr_seg): Define only for ELF.
2418 (s_change_section): Remove unused variable. Don't use for nonELF.
2419
2420 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2421
2422 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2423 obj-elf.h
2424 * config/obj-elf.h (obj_elf_change_section): Likewise.
2425
2426 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2427
2428 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2429 (out_debug_info): Likewise.
2430
2431 2002-09-16 Bruno Haible <bruno@clisp.org>
2432
2433 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2434 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2435 * config/tc-i386.c (i386_target_format): Likewise.
2436 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2437 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2438
2439 2002-09-13 Nick Clifton <nickc@redhat.com>
2440
2441 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2442 when deciding if any operands have been skipped.
2443
2444 2002-09-11 Nick Clifton <nickc@redhat.com>
2445
2446 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2447
2448 * po/tr.po: Updated Turkish translation.
2449
2450 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2451
2452 * config/tc-i386.c (md_apply_fix3): Allow addend for
2453 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2454 BFD_RELOC_386_TLS_LE_32.
2455
2456 2002-09-05 Jeff Law <law@redhat.com>
2457
2458 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2459 marker relocations such as ENTRY/EXIT.
2460 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2461 to both OBJ_ELF and OBJ_SOM.
2462
2463 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2464
2465 * doc/internals.texi (md_apply_fix3): Expand.
2466 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2467 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2468 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2469 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2470 EXTERN_FORCE_RELOC): Document.
2471 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2472 * as.h: Don't include struc-symbol.h for arc.
2473 (IS_ELF): Define.
2474 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2475 subtract absolute symbol.
2476 * obj.h (struct format_ops): Add frob_file_before_fix.
2477 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2478 * symbols.c (S_FORCE_RELOC): New function.
2479 * symbols.h (S_FORCE_RELOC): Declare.
2480 * write.c (TC_FORCE_RELOCATION): Change default.
2481 (TC_FORCE_RELOCATION_ABS): Define.
2482 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2483 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2484 (TC_FORCE_RELOCATION_SECTION): Don't define.
2485 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2486 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2487 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2488 (TC_VALIDATE_FIX_SUB): Define.
2489 (TC_FIX_ADJUSTABLE): Don't define.
2490 (MD_APPLY_SYM_VALUE): Define this instead.
2491 (abs_section_sym): New variable.
2492 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2493 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2494 Don't put the absolute section sym on fixups here.
2495 (fix_segment): New function.
2496 (write_relocs): Don't call fixup_segment from here.
2497 (write_object_file): Instead call tc_frob_file_before_fix,
2498 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2499 Don't output the absolute section symbol.
2500 (fixup_segment): Rewrite.
2501 * write.h (abs_section_sym): Declare.
2502 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2503 obj_aout_frob_file.
2504 (aout_format_ops): Adjust to suit.
2505 * config/obj-aout.h (obj_frob_file): Don't define.
2506 (obj_frob_file_before_fix): Define.
2507 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2508 (S_FORCE_RELOC): Define.
2509 * config/obj-bout.h (S_FORCE_RELOC): Define.
2510 * config/obj-coff.c (coff_format_ops): Init new field.
2511 * config/obj-coff.h: Formatting fixes.
2512 (obj_sec_sym_ok_for_reloc): Define.
2513 (S_FORCE_RELOC): Define.
2514 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2515 (ecoff_frob_file): .. from here.
2516 (ecoff_format_ops): Add new function.
2517 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2518 (obj_frob_file_before_fix): Define.
2519 * config/obj-elf.c (elf_format_ops): Init new field.
2520 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2521 * config/obj-ieee.h: Formatting fixes.
2522 (S_FORCE_RELOC): Define.
2523 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2524 * config/obj-vms.h (S_FORCE_RELOC): Define.
2525 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2526 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2527 for BFD_RELOC_32 and BFD_RELOC_64.
2528 (alpha_fix_adjustable): Remove extern and weak tests.
2529 (alpha_before_fix): Rename from alpha_adjust_symtab.
2530 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2531 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2532 (TC_VALIDATE_FIX): Tweak param name.
2533 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2534 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2535 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2536 (MD_APPLY_SYM_VALUE): Define.
2537 (tc_adjust_symtab): Don't define.
2538 (alpha_adjust_symtab): Don't declare.
2539 (tc_frob_file_before_fix): Define.
2540 (alpha_before_fix): Declare.
2541 (TC_INIT_FIX_DATA): Tweak param names.
2542 * config/tc-arc.c: Include "struc-symbol.h".
2543 (md_pcrel_from): Remove undefined sym fudge.
2544 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2545 Don't set fx_addnumber.
2546 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2547 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2548 (EXTERN_FORCE_RELOC): Define.
2549 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2550 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2551 (arm_validate_fix): Return void.
2552 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2553 Add plt and got reloc tests.
2554 (arm_force_relocation): Call S_FORCE_RELOC.
2555 * config/tc-arm.h (struct fix): Forward declare.
2556 (TC_VALIDATE_FIX): No longer set add_symbolP.
2557 (arm_validate_fix): Adjust declaration.
2558 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2559 (TC_FORCE_RELOCATION): Tweak param name.
2560 (TC_INIT_FIX_DATA): Likewise.
2561 (obj_fix_adjustable): Don't define.
2562 (tc_fix_adjustable): Call arm_fix_adjustable.
2563 (TC_FIX_ADJUSTABLE): Don't define.
2564 (MD_APPLY_SYM_VALUE): Define.
2565 (EXTERN_FORCE_RELOC): Define.
2566 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2567 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2568 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2569 Remove *valP fudges and code to subtract abs sym. Don't set
2570 fx_addnumber.
2571 * config/tc-avr.h: Formatting.
2572 (EXTERN_FORCE_RELOC): Define.
2573 (MD_APPLY_SYM_VALUE): Define.
2574 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2575 (md_apply_fix3): Remove code to subtract abs sym.
2576 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2577 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2578 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2579 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2580 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2581 (tc_fix_adjustable): Remove extern, weak tests.
2582 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2583 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2584 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2585 and code to subtract abs sym.
2586 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2587 (d10v_force_relocation): Call S_FORCE_RELOC.
2588 * config/tc-d10v.h: Don't include write.h.
2589 (struct fix): Instead, forward declare.
2590 (MD_PCREL_FROM_SECTION): Tweak param names.
2591 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2592 (d10v_fix_adjustable): Likewise.
2593 (obj_fix_adjustable): Don't define.
2594 (tc_fix_adjustable): Define.
2595 (TC_FORCE_RELOCATION): Tweak param name.
2596 (MD_APPLY_SYM_VALUE): Define.
2597 (EXTERN_FORCE_RELOC): Define.
2598 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2599 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2600 and code to subtract abs sym.
2601 * config/tc-d30v.h: Don't include write.h.
2602 (struct fix): Instead, forward declare.
2603 (MD_PCREL_FROM_SECTION): Tweak param names.
2604 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2605 (MD_APPLY_SYM_VALUE): Define.
2606 (EXTERN_FORCE_RELOC): Define.
2607 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2608 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2609 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2610 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2611 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2612 Don't use fx_addnumber.
2613 * config/tc-dlx.h: Don't include write.h.
2614 (md_convert_frag): We're not alpha twice over.
2615 (EXTERN_FORCE_RELOC): Define.
2616 (obj_fix_adjustable): Don't define.
2617 (tc_fix_adjustable): Define.
2618 (TC_FIX_ADJUSTABLE): Don't define.
2619 (MD_APPLY_SYM_VALUE): Define.
2620 (LOCAL_LABELS_DOLLAR): Undef always.
2621 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2622 (fr30_fix_adjustable): Remove extern, weak tests.
2623 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2624 (obj_fix_adjustable): Don't define.
2625 (tc_fix_adjustable): Define.
2626 (struct fix): Forward declare.
2627 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2628 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2629 (frv_fix_adjustable): Don't do extern, weak tests.
2630 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2631 (TC_FIX_ADJUSTABLE): Don't define.
2632 (obj_fix_adjustable): Don't define.
2633 (tc_fix_adjustable): Define.
2634 (struct fix): Forward declare.
2635 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2636 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2637 * config/tc-h8300.h (struct fix): Forward declare.
2638 (EXTERN_FORCE_RELOC): Define.
2639 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2640 (hppa_fix_adjustable): Don't test extern or weak. Don't
2641 symbol_mark_used_in_reloc.
2642 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2643 and S_IS_WEAK.
2644 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2645 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2646 (TC_FORCE_RELOCATION_SECTION): Don't define.
2647 (MD_APPLY_SYM_VALUE): Define.
2648 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2649 to subtract abs sym.
2650 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2651 (MD_APPLY_SYM_VALUE): Define.
2652 (MD_PCREL_FROM_SECTION): Tweak param name.
2653 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2654 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2655 (i386_force_relocation): New function.
2656 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2657 (TC_VALIDATE_FIX): Likewise.
2658 (TC_FIX_ADJUSTABLE): Don't define.
2659 (MD_APPLY_SYM_VALUE): Define.
2660 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2661 (i386_force_relocation): Declare.
2662 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2663 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2664 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2665 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2666 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2667 (EXTERN_FORCE_RELOC): Define.
2668 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2669 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2670 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2671 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2672 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2673 Remove #if 0 code. Invert return boolean.
2674 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2675 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2676 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2677 (tc_coff_sizemachdep): Prototype.
2678 (i960_handle_align): Likewise.
2679 (i960_validate_fix): Adjust declaration.
2680 (reloc_callj): Likewise.
2681 (EXTERN_FORCE_RELOC): Define.
2682 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2683 (TC_FORCE_RELOCATION_ABS): Define.
2684 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2685 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2686 (TC_FIX_ADJUSTABLE): Don't define.
2687 (MD_APPLY_SYM_VALUE): Define.
2688 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2689 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2690 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2691 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2692 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2693 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2694 (MD_APPLY_SYM_VALUE): Define.
2695 (EXTERN_FORCE_RELOC): Define.
2696 (TC_FORCE_RELOCATION): Tweak param name.
2697 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2698 (m32r_fix_adjustable): Don't test extern, weak.
2699 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2700 (MD_APPLY_SYM_VALUE): Define.
2701 (obj_fix_adjustable): Don't define.
2702 (tc_fix_adjustable): Define.
2703 (tc_frob_file): Don't define.
2704 (tc_frob_file_before_fix): Define.
2705 (EXTERN_FORCE_RELOC): Define.
2706 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2707 BFD_RELOC_VTABLE_ENTRY address.
2708 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2709 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2710 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2711 Remove duplicated fx_done code.
2712 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2713 (EXTERN_FORCE_RELOC): Define.
2714 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2715 relaxable_symbol.
2716 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2717 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2718 (TC_FIX_ADJUSTABLE): Don't define.
2719 (EXTERN_FORCE_RELOC): Define.
2720 (MD_APPLY_SYM_VALUE): Define.
2721 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2722 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2723 Remove fx_addsy tests.
2724 (mcore_force_relocation): Call S_FORCE_RELOC.
2725 (mcore_fix_adjustable): Don't test fx_addsy.
2726 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2727 (EXTERN_FORCE_RELOC): Define.
2728 (obj_fix_adjustable): Don't define.
2729 (tc_fix_adjustable): Define.
2730 (MD_APPLY_SYM_VALUE): Define.
2731 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2732 (mips_pic): No longer static.
2733 (mips_force_relocation): Call S_FORCE_RELOC.
2734 (mips_fix_adjustable): Remove extern, weak tests.
2735 * config/tc-mips.h (enum mips_pic_level): Declare.
2736 (mips_pic): Declare.
2737 (tc_frob_file): Don't define.
2738 (tc_frob_file_before_fix): Define this instead.
2739 (EXTERN_FORCE_RELOC): Define.
2740 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2741 with reg_section tests. Set fx_done instead of calling
2742 symbol_clear_used_in_reloc on bad relocs.
2743 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2744 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2745 (mmix_adjust_symtab): Simplify list handling. Abort on any
2746 nonsense.
2747 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2748 BFD_RELOC_MMIX_LOCAL.
2749 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2750 (EXTERN_FORCE_RELOC): Define.
2751 (MD_PCREL_FROM_SECTION): Tweak param name.
2752 (tc_frob_file): Don't define.
2753 (tc_frob_file_before_fix): Define this instead.
2754 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2755 Remove SEC_CODE checks.
2756 (mn10300_fix_adjustable): Remove extern and weak tests.
2757 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2758 (TC_FORCE_RELOCATION): Tweak param name.
2759 (obj_fix_adjustable): Don't define.
2760 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2761 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2762 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2763 (openrisc_fix_adjustable): Don't test fx_addsy.
2764 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2765 (obj_fix_adjustable): Don't define.
2766 (tc_fix_adjustable): Define this instead.
2767 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2768 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2769 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2770 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2771 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2772 (MD_APPLY_SYM_VALUE): Define.
2773 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2774 Don't subtract symbol value.
2775 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2776 (EXTERN_FORCE_RELOC): Define.
2777 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2778 (MD_APPLY_SYM_VALUE): Define.
2779 (obj_fix_adjustable): Don't define.
2780 (tc_fix_adjustable): Define this instead.
2781 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2782 section sym.
2783 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2784 (ppc_force_relocation <elf version>): New.
2785 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2786 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2787 comments. Don't subtract fx_subsy as that is already done.
2788 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2789 (MD_PCREL_FROM_SECTION): Likewise.
2790 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2791 ppc_force_relocation.
2792 (TC_FORCE_RELOCATION_SECTION): Delete.
2793 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2794 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2795 (MD_APPLY_SYM_VALUE): Define.
2796 * config/tc-s390.c: #include "dwarf2dbg.h".
2797 (s390_insn): Remove excess parens.
2798 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2799 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2800 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2801 non-NULL. Don't subtract off fx_addsy value.
2802 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2803 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2804 (TC_FIX_ADJUSTABLE): Don't define.
2805 (MD_APPLY_SYM_VALUE): Define.
2806 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2807 (SWITCH_TABLE): Likewise.
2808 (sh_force_relocation): Call S_FORCE_RELOC.
2809 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2810 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2811 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2812 fx_addnumber is zero on entry. Save val in fx_addnumber.
2813 (tc_gen_reloc): Don't subtract fx_subsy.
2814 * config/tc-sh.h (struct fix): Move.
2815 (obj_fix_adjustable): Don't define.
2816 (tc_fix_adjustable): Define this instead.
2817 (TC_FIX_ADJUSTABLE): Don't define.
2818 (MD_APPLY_SYM_VALUE): Define.
2819 (SWITCH_TABLE_CONS): Define.
2820 (SWITCH_TABLE): Define.
2821 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2822 (TC_VALIDATE_FIX_SUB): Define.
2823 (MD_PCREL_FROM_SECTION): Tweak param name.
2824 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2825 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2826 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2827 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2828 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2829 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2830 (TC_VALIDATE_FIX_SUB): Define.
2831 (MD_PCREL_FROM_SECTION): Tweak param name.
2832 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2833 (tc_gen_reloc): Use S_FORCE_RELOC.
2834 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2835 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2836 (TC_FORCE_RELOCATION_ABS): Define this instead.
2837 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2838 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2839 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2840 (MD_APPLY_SYM_VALUE): Define.
2841 (TC_FIX_DATA_PRINT): Tweak param name.
2842 * config/tc-tic30.c (USE_STDOUT): Don't define.
2843 (md_parse_option): Remove stupid debug code.
2844 (tc_gen_reloc): Don't use fx_addnumber.
2845 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2846 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2847 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2848 (tc_fix_adjustable): Define this instead.
2849 (TC_FIX_ADJUSTABLE): Don't define.
2850 (MD_APPLY_SYM_VALUE): Define this instead.
2851 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2852 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2853 (TC_FIX_ADJUSTABLE): Don't define.
2854 (MD_APPLY_SYM_VALUE): Define this instead.
2855 (tc_fix_adjustable): Remove extern and weak tests.
2856 * config/tc-w65.h (struct fix): Forward declare.
2857 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2858 S_FORCE_RELOC.
2859 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2860 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2861 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2862 absolute symbol.
2863 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2864 (MD_APPLY_SYM_VALUE): Define.
2865 (obj_fix_adjustable): Don't define.
2866 (tc_fix_adjustable): Define this instead.
2867 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2868
2869 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2870
2871 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2872 (ppc_fix_adjustable <coff version>): Cleanup.
2873
2874 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2875 (md_parse_option): No -a64 without BFD64.
2876 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2877 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2878
2879 2002-09-04 Nick Clifton <nickc@redhat.com>
2880
2881 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2882 instructions into the hash table if the target cpu is the BookE32.
2883
2884 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2885
2886 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2887 ATTRIBUTE_UNUSED.
2888
2889 2000-08-28 Catherine Moore <clm@redhat.com>
2890
2891 * tc-v850.c (v850_relax): Declare.
2892 (v850_longcode): New routine.
2893 (v850_handle_align): New routine.
2894 (md_pseudo_table): Add longcall and longjump.
2895 (md_parse_option): Check for relax option.
2896 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2897 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2898 (md_apply_fix3): Likewise.
2899 (v850_force_relocation): Likewise.
2900 (v850_comm): Change the current section.
2901 (md_assemble): Ensure that the correct value is put in the
2902 fixup.
2903 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2904 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2905 Remove redundant v850ea support.
2906 * tc-v850.h (HANDLE_ALIGN): Define.
2907 (v850_handle_align): Declare.
2908 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2909
2910 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2911
2912 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2913 * configure: Regenerate.
2914 * NEWS: Mention new port.
2915
2916 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2917
2918 * config/obj-coff.c: Add sdef definition.
2919 * config/obj-coff.h: Add tic4x include file and set
2920 target format.
2921 * config/tc-tic4x.c: New file.
2922 * config/tc-tic4x.h: New file.
2923
2924 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2925
2926 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2927 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2928 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2929 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2930 (RELOC_ENUM): Define.
2931 (fix_new_internal): Use RELOC_ENUM.
2932 (fix_new, fix_new_exp): Likewise.
2933 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2934 Replace gotos with continue.
2935 (write_relocs): Formatting. Avoid symbol loops in
2936 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2937 errors, and error number in other cases.
2938 (fixup_segment): Remove param names from prototype. Rename
2939 "this_segment_type" to "this_segment". Update linkrelax comment.
2940 Remove "size, "place" and "where" local vars. Formatting. Update
2941 "no symbol" comment. Remove #if 0 and #if 1.
2942
2943 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2944
2945 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2946
2947 * dwarf2dbg.c: Always include dwarf2dbg.h.
2948 (dwarf2_directive_file): Adjust dummy version args.
2949 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2950 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2951 when symbol values differ.
2952 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2953 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2954 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2955
2956 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2957
2958 * config/tc-w65.c (md_section_align): Fix typo.
2959 (md_parse_option): Return 0, not 1.
2960
2961 2002-08-22 Nick Clifton <nickc@redhat.com>
2962
2963 * doc/as.texinfo (Section): Note that if '@' is a comment
2964 character then another symbol is used to prefix the section's
2965 type.
2966
2967 2002-08-22 Christian Groessler <chris@groessler.org>
2968
2969 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2970 "case 0" case.
2971
2972 2002-08-12 Graeme Peterson <gp@qnx.com>
2973
2974 * configure.in: Add support for sh-**-nto* target.
2975 * configure: Regenerate.
2976
2977 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2978
2979 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2980
2981 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2982
2983 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2984 is ELF.
2985 (ppc_apuinfo_section_add): Define only if format is ELF.
2986 (md_assemble): Emit APUinfo section only if format is ELF.
2987 Fix formatting.
2988
2989 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2990
2991 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2992 * config/tc-frv.c: Likewise.
2993 * config/tc-hppa.c: Likewise.
2994 * config/tc-ia64.c: Likewise.
2995 * config/tc-ip2k.c: Likewise.
2996 * config/tc-m68hc11.c: Likewise.
2997 * config/tc-m68k.c: Likewise.
2998 * config/tc-mmix.c: Likewise.
2999 * config/tc-mn10300.c: Likewise.
3000 * config/tc-sh.c: Likewise.
3001 * config/tc-sparc.c: Likewise.
3002 * config/tc-v850.c: Likewise.
3003
3004 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3005
3006 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3007 by zero.
3008
3009 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3010
3011 From matthew green <mrg@redhat.com>
3012
3013 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3014 PPC_OPCODE_PPC is, except for BookE architectures.
3015 (md_parse_option): Add support for -mspe.
3016 (md_show_usage): Add -mspe.
3017 (md_parse_option): Add support for -me500 and
3018 -me500x2 to generate code for Motorola e500 core complex.
3019 (md_show_usage): Add -me500 and -me500x2.
3020
3021 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3022 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3023 PPC_APUINFO_BRLOCK): New macros.
3024
3025 (ppc_cleanup): New function.
3026 (ppc_apuinfo_section_add): New function.
3027 (APUID): New macro.
3028 (md_assemble): Collect info and write the APUinfo section.
3029
3030 * config/tc-ppc.h (md_cleanup): Define.
3031 (ppc_cleanup): Export.
3032 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3033
3034 2002-08-17 Stan Cox <scox@redhat.com>
3035
3036 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3037 config/tc-mips.c (s_change_section): New function to support
3038 IRIX .section pseudo-op.
3039
3040 2002-08-16 Nick Clifton <nickc@redhat.com>
3041
3042 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3043
3044 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3045
3046 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3047 the fix-up against on the right frag.
3048 (s_cpsetup): Likewise. Parse third argument as expression, to
3049 handle global symbols and forward/backward labels correctly.
3050
3051 2002-08-14 Nick Clifton <nickc@redhat.com>
3052
3053 * read.c (stringer): Catch attempts to create strings in the abs
3054 section.
3055
3056 * config/tc-alpha.c: Fix compiling for COFF targets.
3057 Some minor formatting tidyups.
3058
3059 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3060
3061 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3062 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3063 according to the reloc.
3064 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3065 (TC_FORCE_RELOCATION): Define.
3066 (tc_m68hc11_force_relocation): Declare.
3067
3068 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3069 (s_m68hc11_relax): New function for relax group.
3070 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3071 beginning of jump instruction.
3072 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3073 address computation.
3074 (tc-gen_reloc): Update.
3075 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3076 PC-relative fixup.
3077 (tc_m68hc11_force_relocation): New function, handle new relocs.
3078 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3079 reloc for the linker relax pass.
3080 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3081 and VTABLE relocs.
3082
3083 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3084
3085 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3086 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3087 (s_m68hc11_mode): New function for .mode pseudo op.
3088 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3089 pseudo op.
3090 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3091 (m68hc11_elf_final_processing): Declare.
3092
3093 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3094
3095 * config/tc-m68hc11.c (md_begin): Take into account additional
3096 page operand for call instruction.
3097 (print_opcode_format): Likewise.
3098 (check_range): Likewise for page range checking.
3099 (get_operand): Don't skip a possible comma in operands.
3100 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3101 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3102 (fixup24): New to handle call reloc.
3103 (build_insn): Handle missing page operand for call instruction.
3104 (find): Likewise.
3105 (md_apply_fix3): Take into account new relocs.
3106 (get_operand): Fix the mode for indexed indirect addressing.
3107 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3108
3109 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3110
3111 * config/tc-mips.c (mips_ip): Don't work out the value of
3112 constant %hi()s here.
3113
3114 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3115
3116 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3117 for ELF, and don't bother checking ELF relocs when non-ELF.
3118 (i386_immediate): Allow absolute_section expressions for aout.
3119 (i386_displacement): Likewise. Also test bfd_is_com_section.
3120 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3121 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3122 not when fx_addsy. Remove dead code.
3123
3124 2002-08-09 Graeme Peterson <gp@qnx.com>
3125
3126 * configure.in: Add support for ppc-*-nto* target.
3127 * configure: Regenerate.
3128
3129 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3130
3131 * config/tc-i386.h: Reorganize.
3132
3133 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3134
3135 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3136 immediate offset in "dla" and "la" expansions.
3137
3138 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3139
3140 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3141 Remove "bfd_gas=yes" from target table when covered later.
3142 Consolidate some entries.
3143 * configure: Regenerate
3144
3145 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3146
3147 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3148 at start of insn, pass it to output_disp and output_imm.
3149 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3150 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3151 properly addend.
3152 (output_imm): Added arguments. Compute properly addend for
3153 R_386_GOTPC.
3154 (md_apply_fix3): Remove R_386_GOTPC handling.
3155
3156 2002-08-06 George France <france@handhelds.org>
3157
3158 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3159 and m21264b processor names and cpu types.
3160 * doc/c-alpha.texi: Documented new types.
3161
3162 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3163
3164 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3165
3166 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3167
3168 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3169 handling to BFD_RELOC_MIPS16_GPREL.
3170
3171 2002-08-01 Nick Clifton <nickc@redhat.com>
3172
3173 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3174 pool is computed using signed arithmetic so that proper sign
3175 extension is performed if X_add_number is a 64-bit integer.
3176
3177 2002-08-01 H.J. Lu <hjl@gnu.org>
3178 Daniel Jacobowitz <drow@mvista.com>
3179
3180 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3181 .debug_line section unless it has line information.
3182
3183 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3184
3185 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3186 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3187 Allow default displacement size to be an option "--disp-size-default".
3188 (md_number_to_disp): Make error messages include value. Use %d to
3189 print integers, not %s.
3190 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3191 get duplicate messages sometimes.
3192 (convert_iif): Grow frag to max possible instruction size. Avoid
3193 creating unnecessary fixes.
3194 (md_number_to_field) Add prototype.
3195 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3196 prototypes and make static.
3197 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3198 (evaluate_expr): Use resultP argument instead of exprP global.
3199 (get_addr_mode): Quiten compiler warnings.
3200 (encode_operand): eliminate unused variables. Quiten compiler
3201 warnings. Eliminate nul character in format strings.
3202 (parse): argc is unsigned.
3203 (reloc): Type cast index to quieten compiler.
3204 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3205 (md_convert_frag): Note unused parameters. Remove unused
3206 variables.
3207 (md_create_long_jump, md_create_short_jump,
3208 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3209 unused parameters.
3210
3211 2002-07-31 Nick Clifton <nickc@redhat.com>
3212
3213 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3214 of the PDP-11 and 2.11BSD a.out support.
3215
3216 2002-07-31 Momchil Velikov <velco@fadata.bg>
3217
3218 * config/tc-v850.c (md_assemble): Fix range check for immediate
3219 operand.
3220
3221 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3222
3223 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3224 to Broadcom SB-1 core support.
3225
3226 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3227
3228 * config/tc-mips.c (mips_target_format): Fix formatting.
3229 Add recognition of n32 ABI formats.
3230
3231 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3232
3233 * tc-mips.c (load_address): Don't clobber $at when loading a
3234 64-bit address in non-PIC code if noat is in effect.
3235 (macro): Likewise.
3236
3237 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3238
3239 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3240 used in division/multiply macro expansions similarly to how they
3241 are used in the variants with break instructions.
3242 (macro2): Likewise.
3243
3244 2002-07-30 Graeme Peterson <gp@qnx.com>
3245
3246 * configure.in: Add support for arm-*-nto target.
3247 * configure: Regenerate.
3248
3249 2002-07-30 Nick Clifton <nickc@redhat.com>
3250
3251 * config/tc-arm.c (struct literal_pool): Add fields to allow
3252 multiple literal pools to be maintained.
3253 (find_literal_pool): New function.
3254 (find_or_make_literal_pool): New function.
3255 (add_to_literal_pool): Use find_or_make_literal_pool.
3256 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3257 needed.
3258 (s_ltorg): Use find_literal_pool.
3259 (arm_cleanup): Dump all literal pools.
3260 * doc/c-arm.texi: Document new behaviour of only dumping literal
3261 pools upon request.
3262
3263 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3264
3265 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3266 rather than PPC_OPCODE_32 for powerpc64*.
3267
3268 2002-07-25 Nick Clifton <nickc@redhat.com>
3269
3270 * po/es.po: Updated Spanish translation.
3271 * po/fr.po: Updated French translation.
3272
3273 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3274
3275 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3276 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3277 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3278 * configure, config.in: Regenerate.
3279 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3280 (mips_set_options): Remove "abi" field.
3281 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3282 with mips_abi.
3283 (mips_cpu): Remove.
3284 (mips_arch_string, mips_arch_info): New vars.
3285 (mips_tune_string, mips_tune_info): New vars.
3286 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3287 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3288 (mips_isa_to_str, mips_cpu_to_str): Remove.
3289 (mips_ip): If the selected architecture is a generic ISA rather
3290 than a processor, only mention the ISA level in error messages.
3291 (OPTION_MCPU): Remove.
3292 (OPTION_FP64): New.
3293 (md_longopts): Add -mfp64, remove -mcpu.
3294 (mips_set_option_string): New fn.
3295 (md_parse_option): Make -mipsN update file_mips_isa rather than
3296 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3297 Don't let -mgp32 and -mfp32 change the ABI.
3298 (show): Move to end of file. Constify string argument.
3299 (md_show_usage): Move to the end of the file. Read available
3300 architectures from mips_cpu_info_table.
3301 (mips_set_architecture): New fn.
3302 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3303 is an alias for -march=mipsN. Don't change the ABI based on other
3304 flags. Infer the register size from the ABI as well as the
3305 architecture. Complain about more conflicting arguments.
3306 Unify logic with GCC.
3307 (s_mipsset): Don't change the ABI.
3308 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3309 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3310 "mipsN"-type entries. Remove entries that vary only in the
3311 manufacturer's prefix, or that have "000" replaced by "k".
3312 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3313 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3314 (mips_parse_cpu): New fn.
3315 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3316 (mips_cpu_info_from_isa): Minor formatting tweak.
3317
3318 2002-07-24 Nick Clifton <nickc@redhat.com>
3319
3320 * po/sv.po: Updated Swedish translation.
3321 * po/es.po: Updated Spanish translation.
3322
3323 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3324
3325 * Makefile.am: Run "make dep-am".
3326 * Makefile.in: Regenerate.
3327 * doc/Makefile.in: Regenerate.
3328 * config.in: Regenerate.
3329 * po/POTFILES.in: Regenerate.
3330
3331 2002-07-23 Nick Clifton <nickc@redhat.com>
3332
3333 * po/fr.po: Updated French translation.
3334
3335 2002-07-23 Nick Clifton <nickc@redhat.com>
3336
3337 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3338 GAS.
3339
3340 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3341
3342 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3343 instead of S_IS_EXTERN.
3344 (md_estimate_size_before_relax): Likewise.
3345 (mips_fix_adjustable): Likewise.
3346
3347 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3348
3349 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3350
3351 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3352 Nick Clifton <nickc@redhat.com>
3353
3354 * cond.c (s_ifdef): Treat a referenced but not yet defined
3355 symbol as if it were undefined, in exactly the same way as
3356 .equiv.
3357
3358 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3359 consider referenced bug not yet defined symbols to be
3360 undefined.
3361
3362 2002-07-18 Denis Chertykov <denisc@overta.ru>
3363 Frank Ch. Eigler <fche@redhat.com>
3364 Alan Lehotsky <alehotsky@cygnus.com>
3365 John Healy <jhealy@redhat.com>
3366 Jeff Johnston <jjohnstn@redhat.com>
3367
3368 * configure.in: Add ip2k configuraton.
3369 * configure: Regenerate.
3370 * Makefile.am: Add ip2k configuraton.
3371 * Makefile.in: Regenerate.
3372 * configure: Regenerate.
3373 * Makefile.in: Regenerate.
3374 * config/tc-ip2k.c: New file.
3375 * config/tc-ip2k.h: New files.
3376 * NEWS: Mention new support.
3377 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3378 * doc/Makefile.in: Regenerate.
3379 * doc/all.texi: Set IP2K
3380 * doc/as.texinfo: Add IP2K description.
3381 * doc/c-ip2k.texi: New file.
3382
3383 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3384
3385 * NEWS: Reformat to match style of other NEWS files.
3386
3387 2002-07-17 Jan Hubicka <jh@suse.cz>
3388
3389 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3390
3391 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3392
3393 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3394
3395 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3396
3397 * NEWS: Add 'Changes in 2.13'.
3398
3399 2002-07-15 Matt Fredette <fredette@netbsd.org>
3400
3401 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3402
3403 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3404
3405 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3406 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3407 not CODE_64BIT.
3408
3409 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3410
3411 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3412 (ppc_frob_file_before_adjust): New function.
3413 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3414 (ppc_elf_frob_symbol): Don't declare.
3415 (tc_frob_file_before_adjust): Define.
3416 (ppc_frob_file_before_adjust): Declare.
3417
3418 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3419 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3420 flags.
3421 (ppc_size): Delete.
3422 (ppc_xcoff64): Rename to ppc_obj64.
3423 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3424 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3425 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3426 or bfd_mach_ppc.
3427 (ppc_target_format): Use ppc_obj64 to select format.
3428 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3429 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3430 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3431 (tc_frob_symbol): Likewise.
3432 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3433 BFD_DEFAULT_TARGET_SIZE.
3434 (ppc_tc): Likewise.
3435 (ppc_is_toc_sym): Likewise.
3436 (md_apply_fix3): Likewise.
3437 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3438 BFD_DEFAULT_TARGET_SIZE.
3439 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3440 (tc_frob_symbol): Likewise.
3441
3442 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3443
3444 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3445 (mips_ip): Likewise.
3446
3447 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3448
3449 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3450 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3451 (md_apply_fix3): Formatting. Remove redundant test.
3452 (tc_gen_reloc): Remove redundant code.
3453 (tc_i386_force_relocation): Delete. Movy body of function to..
3454 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3455
3456 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3457
3458 * configure.in: Add hppa-*-openbsd* target, change
3459 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3460 with sparc64 cpu.
3461 * configure: Regenerate.
3462
3463 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3464
3465 * config/tc-mips.c (macro): Shift the 32-bit address range
3466 accessible with a lone "lui" down by 32768.
3467
3468 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3469
3470 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3471 instead of "dadd" in address calculations.
3472 (macro): Likewise.
3473
3474 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3475
3476 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3477 movzx fudges.
3478 (md_assemble): Instead, zap the suffix here.
3479
3480 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3481
3482 * NEWS: Remove next release number until the release is actually
3483 upon us.
3484
3485 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3486
3487 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3488 Run "make dep-am".
3489 * Makefile.in: Regenerate.
3490
3491 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3492
3493 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3494 to symbols in merge sections, even non pc-relative ones.
3495
3496 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3497
3498 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3499
3500 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3501
3502 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3503 .softregs and .eeprom.
3504
3505 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3506
3507 * NEWS: Note the next release is 2.13.
3508
3509 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3510
3511 * po/tr.po: New translation imported.
3512
3513 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3514
3515 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3516 (ecoff_directive_def): Likewise.
3517 (ecoff_directive_tag): Likewise.
3518 * listing.c (file_info): Likewise.
3519 * hash.c (what): Likewise.
3520
3521 2002-06-25 H.J. Lu <hjl@gnu.org>
3522
3523 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3524 * Makefile.in: Regenerated.
3525
3526 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3527
3528 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3529 (assemble_ppi): Generate warning if the same register is used
3530 twice as destination in the same padd / pmuls instruction.
3531
3532 2002-06-18 Dave Brolley <brolley@redhat.com>
3533
3534 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3535 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3536 * configure.in: Support frv-*-*.
3537 * Makefile.am (CPU_TYPES): Add frv.
3538 (TARGET_CPU_CFILES): Add tc-frv.c.
3539 (TARGET_CPU_HFILES): Add tc-frv.h.
3540 (DEPTC_frv_coff): New variable.
3541 (DEPTC_frv_elf): New variable.
3542 (DEPOBJ_frv_coff): New variable.
3543 (DEPOBJ_frv_elf): New variable.
3544 (DEP_frv_coff): New variable.
3545 (DEP_frv_elf): New variable.
3546 * tc-frv.c: New file.
3547 * tc-frv.h: New file.
3548
3549 2002-06-17 Catherine Moore <clm@redhat.com>
3550
3551 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3552
3553 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3554
3555 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3556
3557 2002-06-17 Tom Rix <trix@redhat.com>
3558
3559 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3560
3561 2002-06-14 H.J. Lu <hjl@gnu.org>
3562 Daniel Jacobowitz <drow@mvista.com>
3563
3564 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3565 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3566 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3567 and new_logical_line for the first .file directive.
3568 * read.c (s_app_file_string): New function.
3569 (s_app_file): Call it.
3570 * read.h (s_app_file_string): Add declaration.
3571
3572 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3573
3574 * configure.in: Remove MIPS_STABS_ELF.
3575 * configure: Regenerated.
3576 * config.in: Regenerated.
3577 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3578 for MIPS targets.
3579 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3580 ".extern".
3581 (pdr_seg): Declare unconditionally.
3582 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3583 (s_mips_end): Likewise. Generate stabs function markers.
3584 (s_mips_ent): Generate stabs function markers.
3585 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3586 ELF.
3587 (s_mips_mask): Likewise.
3588 (mips_flag_mdebug): New.
3589 (md_longopts): Add "mdebug" and "no-mdebug".
3590 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3591 (mips_after_parse_args): Set mips_flag_mdebug.
3592 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3593
3594 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3595
3596 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3597 value twice for RELA relocations.
3598
3599 2002-06-12 Ben Elliston <bje@redhat.com>
3600
3601 * symbols.c (resolve_symbol_value): Initialise final_val.
3602
3603 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3604
3605 2002-06-11 Tom Rix <trix@redhat.com>
3606
3607 * config/tc-ppc.c (ppc_subseg_align): Delete.
3608 (ppc_change_csect): Default csect align is 2.
3609 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3610
3611 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3612
3613 * config/tc-avr.c (mcu_types): Update.
3614
3615 2002-06-08 Matt Thomas <matt@3am-software.com>
3616
3617 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3618 (vax-*-netbsd*): New targets.
3619 * configure: Regenerate.
3620 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3621 * config/tc-vax.c: Add support for ELF and PIC.
3622 (flag_want_pic): New flag.
3623 (float_cons): Fix prototype.
3624 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3625 (md_assemble): Introduce a new is_absolute local, and use it
3626 rather than repeating the test. Make fatal errors actually
3627 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3628 Add support for ELF. Add support for PIC.
3629 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3630 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3631 BFD_ASSEMBLER.
3632 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3633 optional for a.out, and not allowed for VMS. Adjust all callers.
3634 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3635 (md_create_long_jump): Likewise.
3636 (md_undefined_symbol): Likewise.
3637 (md_section_align): Likewise.
3638 (md_shortopts): Allow -k and -K for ELF.
3639 (md_parse_option): Set flag_want_pic if -k or -K.
3640 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3641 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3642 * config/tc-vax.h (tc_headers_hook): Remove.
3643 (TARGET_FORMAT): Set according to object format and target
3644 environment.
3645 (BFD_ARCH, TARGET_ARCH): Define.
3646 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3647 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3648 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3649 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3650
3651 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3652
3653 * Makefile.am: Run "make dep-am".
3654 * Makefile.in: Regenerate.
3655
3656 * as.c: Replace CONST with const.
3657 * write.c: Likewise.
3658 * config/obj-coff.c: Likewise.
3659 * config/tc-a29k.c: Likewise.
3660 * config/tc-arm.c: Likewise.
3661 * config/tc-dlx.c: Likewise.
3662 * config/tc-h8300.c: Likewise.
3663 * config/tc-h8500.c: Likewise.
3664 * config/tc-i370.c: Likewise.
3665 * config/tc-i860.c: Likewise.
3666 * config/tc-i960.c: Likewise.
3667 * config/tc-m68hc11.c: Likewise.
3668 * config/tc-m68k.c: Likewise.
3669 * config/tc-m88k.c: Likewise.
3670 * config/tc-mcore.c: Likewise.
3671 * config/tc-mips.c: Likewise.
3672 * config/tc-ns32k.c: Likewise.
3673 * config/tc-pdp11.c: Likewise.
3674 * config/tc-pj.c: Likewise.
3675 * config/tc-s390.c: Likewise.
3676 * config/tc-sh.c: Likewise.
3677 * config/tc-sparc.c: Likewise.
3678 * config/tc-tahoe.c: Likewise.
3679 * config/tc-tic80.c: Likewise.
3680 * config/tc-v850.c: Likewise.
3681 * config/tc-vax.c: Likewise.
3682 * config/tc-w65.c: Likewise.
3683 * config/tc-z8k.c: Likewise.
3684
3685 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3686
3687 Based on patch from Matt Green:
3688 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3689 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3690 (s_mips_loc): New function.
3691 (mips_nonecoff_pseudo_table): Call them.
3692 (append_insn): Call dwarf2_emit_insn.
3693
3694 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3695
3696 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3697 to -1.
3698 (file_ase_mips16): New veriable.
3699 (mips_eabi64): Remove.
3700 (CPU_HAS_MIPS16): New define.
3701 (CPU_HAS_MDMX): Fix data type.
3702 (md_begin): Code cleanup. Use file_ase_mips16.
3703 (mips_elf_final_processing): Handle mips16 header flag.
3704 Handle EABI flag without intermediate variable.
3705
3706 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3707
3708 * doc/as.texinfo: Update MIPS documentation.
3709
3710 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3711
3712 * config/tc-mips.c: Add define for $zero register.
3713 (md_begin): Add $zero as alias name for $0.
3714 (insn_uses_reg): Use ZERO define.
3715 (mips_ip): Add $zero as alias name for $0.
3716 (mips16_ip): Likewise.
3717 (s_cplocal): Demand empty rest of input line.
3718 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3719 names. Use ZERO define. Fix input_line_pointer progress.
3720
3721 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3722
3723 * symbols.c: Replace CONST by const throughout.
3724 (symbol_find_exact): Split out from..
3725 (symbol_find_base): ..here.
3726 * symbols.h: Replace CONST by const throughout.
3727 (symbol_find_exact): Declare.
3728 * config/obj-elf.c: #include "struc-symbol.h".
3729 (elf_frob_file): If group name matches an exported symbol, use that
3730 symbol for the signature and ".group" as the section name.
3731
3732 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3733
3734 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3735 but warn about it.
3736
3737 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3738
3739 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3740 and mips_opts.ase_mdmx if they are uninitialized.
3741
3742 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3743
3744 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3745 (hppa_force_relocation): Check if a stub just before the start symbol
3746 of the last call_info is reachable before forcing relocation. Fix
3747 typo.
3748
3749 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3750
3751 * config/tc-mips.c (mips_after_parse_args): New function.
3752 (md_begin): Move processing of defaults to mips_after_parse_args.
3753 config/tc-mips.h (md_after_parse_args): Define.
3754
3755 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3756
3757 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3758 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3759 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3760 * configure: Regenerate.
3761 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3762 environment.
3763
3764 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3765
3766 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3767
3768 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3769
3770 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3771 linkonce flag. Print all warnings.
3772 (obj_elf_section): Parse ",comdat" for groups.
3773 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3774 consistency of comdat flag.
3775
3776 2002-06-02 Richard Henderson <rth@redhat.com>
3777
3778 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3779 with LITERALs without sequence numbers.
3780
3781 2002-06-01 Richard Henderson <rth@redhat.com>
3782
3783 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3784 Rename them LITUSE_ALPHA_*.
3785
3786 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3787
3788 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3789 accept parentheses enclosed register lists.
3790
3791 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3792
3793 * Makefile.am: Run "make dep-am".
3794 * Makefile.in: Regenerate.
3795 * po/POTFILES.in: Regenerate.
3796
3797 2002-05-31 Graeme Peterson <gp@qnx.com>
3798
3799 * configure.in: Add i386-*-nto-qnx*.
3800 * configure: Regenerate.
3801
3802 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3803
3804 * config/tc-mips.c (mips_ip): Use unsigned long values for
3805 warning output.
3806
3807 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3808
3809 * config/tc-mips.c (s_cpsetup): Fix initialization of
3810 mips_cpreturn_register and mips_cpreturn_offset.
3811
3812 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3813
3814 * config/tc-mips.c (s_cpsetup): Fix comment.
3815
3816 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3817
3818 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3819 (mips_ip): Likewise.
3820 (mips16_ip): Likewise.
3821 (tc_get_register): Likewise.
3822
3823 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3824 Ed Satterthwaite <ehs@broadcom.com>
3825
3826 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3827 (mips_opts): Initialize "ase_mdmx" member.
3828 (file_ase_mdmx): New variable.
3829 (CPU_HAS_MDMX): New macro.
3830 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3831 based on command line options and configuration defaults.
3832 (macro_build): Note in comment that use of MDMX in macros is
3833 not currently allowed.
3834 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3835 "Z" MDMX operand types.
3836 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3837 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3838 types.
3839 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3840 Add support for "-mdmx" and "-no-mdmx" options.
3841 (OPTION_ELF_BASE): Move to accomodate new options.
3842 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3843 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3844 file_ase_mdmx was set.
3845 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3846 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3847 nomdmx" directives.
3848
3849 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3850
3851 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3852 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3853 command line switch conforming to gcc conventions.
3854 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3855
3856 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3857
3858 * config/tc-mips.c (macro_build_jalr): New Function.
3859 (md_begin): NewABI uses big GOTs.
3860 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3861 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3862 (load_address): Add some NewABI PIC support.
3863 (macro): Likewise.
3864 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3865 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3866
3867 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3868
3869 * config/tc-mips.c (load_address): Use mips_gp_register instead
3870 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3871 instead.
3872 (macro): Use mips_gp_register instead of hardcoded value.
3873
3874 2002-05-30 Richard Henderson <rth@redhat.com>
3875
3876 * expr.h (operatorT): Add O_md17..O_md32.
3877 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3878 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3879 O_tprelhi, O_tprello, O_tprel): New.
3880 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3881 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3882 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3883 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3884 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3885 (md_apply_fix3): Handle TLS relocations.
3886 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3887 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3888 associated TLS reloc. Check lituse_tls relocs match up.
3889 (emit_insn): Handle TLS relocations.
3890 (ldX_op): Remove.
3891
3892 * doc/c-alpha.texi: Add docs for tls relocations.
3893
3894 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3895
3896 * config/tc-mips.c (mips_gprel_offset): New variable.
3897 (s_gpvalue): Use it.
3898
3899 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3900
3901 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3902 write-write conflicts.
3903 (md_assemble): Reformat introductory comment.
3904 (parallel_ok): Prevent packing only if the first
3905 instruction cannot be packed.
3906
3907 2002-05-30 Jason Eckhardt <jle@redhat.com>
3908 Tom Rix <trix@redhat.com>
3909
3910 * config/tc-d10v.c (build_insn): Check for immediates.
3911
3912 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3913
3914 * config/tc-mips.c: Replace GP in comments by $gp.
3915 (mips_big_got): Initialize.
3916 (mips_trap): Initialize.
3917 (load_address): Use mips_gp_register instead of hardcoded value.
3918 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3919 (macro): Use mips_gp_register instead of hardcoded value.
3920 (macro2): Change load_address calls.
3921 (md_pcrel_from): Comment formatting.
3922 (s_cpload): Use mips_gp_register instead of hardcoded value.
3923 (s_cprestore): Likewise. Comment formatting.
3924 (s_gpword): Fix data type.
3925 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3926 (nopic_need_relax): Replace GP in comments by $gp.
3927 (mips_elf_final_processing): Better comment.
3928
3929 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3930
3931 * configure.in: Add DLX configuraton
3932 * Makefile.am: Add DLX configuraton
3933 * configure: Regenerate.
3934 * Makefile.in: Regenerate.
3935 * config/tc-dlx.c: New file.
3936 * config/tc-dlx.h: New files.
3937 * NEWS: Mention new support.
3938
3939 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3940
3941 * config/obj-coff.c (write_object_file): Add missing semicolon.
3942
3943 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3944
3945 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3946 by the define. Remove superfluous check of mips_opts.mips16.
3947 (append_insn): Likewise. Canonicalize variable increments.
3948 (macro_build): Canonicalize variable increments.
3949 (macro_build_lui): Likewise.
3950 (load_register): Likewise.
3951 (load_address): Move pointer initialization.
3952 (macro): Move pointer to a more local scope. Canonicalize variable
3953 increments. Better comments. Replace magic constant for RA by the
3954 define.
3955 (macro2): Replace magic constant for RA by the define. Canonicalize
3956 variable increments.
3957 (mips_ip): Canonicalize variable increments.
3958 (mips16_ip): Replace magic constant for RA by the define.
3959 (my_getSmallParser): Canonicalize variable increments/decrements.
3960 (my_getPercentOp): Likewise.
3961 (my_getSmallExpression): Likewise.
3962 (s_align): Likewise.
3963 (s_mipsset): Likewise.
3964 (s_cpsetup): Likewise.
3965 (s_insn): Remove superfluous check of mips_opts.mips16.
3966 (s_mips_stab): Likewise.
3967 (mips_handle_align): Canonicalize variable increments.
3968 (s_mips_ent): Likewise.
3969 (s_mips_end): Add comment.
3970
3971 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3972
3973 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3974 * configure: Regenerate.
3975
3976 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3977
3978 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3979 * Makefile.in: Regenerate.
3980 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3981 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3982 * configure: Regenerate.
3983 * as.h: Use #include "" instead of <> for local header files.
3984 * flonum-konst.c: Likewise.
3985 * flonum-mult.c: Likewise.
3986 * gasp.c: Likewise.
3987 * listing.c: Likewise.
3988 * config/tc-ia64.h: Likewise.
3989 * config/tc-v850.h: Likewise.
3990
3991 2002-05-24 TAMURA Kent <kent@netbsd.org>
3992
3993 * configure.in: Add a target for i386-netbsdpe.
3994 * configure: Regenerate.
3995
3996 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3997
3998 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3999 (obj_elf_common): Call elf_common.
4000 (obj_elf_tls_common): New function.
4001 (elf_pseudo_tab): Support .tls_common.
4002 (special_sections): Add .tdata and .tbss.
4003 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4004 sections.
4005 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4006 (obj_elf_parse_section_letters): Include T in error message.
4007 * config/tc-ppc.c (ppc_section_letter): Likewise.
4008 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4009 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4010 SEC_MERGE.
4011 * config/tc-sparc.c (md_apply_fix3): Likewise.
4012 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4013 Define them if not BFD_ASSEMBLER.
4014 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4015 and @NTPOFF.
4016 (md_apply_fix3): Add TLS relocs.
4017 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4018 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4019 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4020 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4021 (ia64_elf_section_letter): Include T in error message.
4022 (md_begin): Support TLS operators.
4023 (md_operand): Likewise.
4024 (ia64_gen_real_reloc_type): Support TLS relocs.
4025 * write.c (adjust_reloc_syms): Don't change symbols in
4026 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4027
4028 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4029
4030 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4031 round the relocation up rather than down.
4032
4033 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4034
4035 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4036 flag.
4037 * doc/as.texinfo: Document that the COFF version of .section
4038 ignores the 'a' flag.
4039
4040 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4041
4042 * config/tc-alpha.c (assemble_tokens): Protect use of
4043 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4044
4045 * write.c (size_seg): Check adjustment to last frag.
4046 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4047 section alignment.
4048 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4049 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4050 (write_object_file): Invoke md_do_align if available, and use
4051 frag_align_code on text sections.
4052 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4053 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4054 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4055 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4056 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4057 BFD_ASSEMBLER too.
4058
4059 2002-05-22 H.J. Lu <hjl@gnu.org>
4060
4061 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4062 for source file.
4063
4064 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4065
4066 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4067 as ELF builds.
4068
4069 2002-05-22 H.J. Lu <hjl@gnu.org>
4070
4071 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4072 for one .loc for compiler.
4073
4074 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4075
4076 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4077 embedded-PIC.
4078
4079 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4080
4081 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4082 Optimize the rotate by zero case.
4083
4084 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4085
4086 * configure.in: Remove accidental enabling of bfd_gas=yes for
4087 sh-coff targets.
4088 * configure: Regenerate.
4089
4090 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4091
4092 * app.c: Fix formatting.
4093 * as.c: Likewise.
4094 * ehopt.c: Likewise.
4095 * expr.c: Likewise.
4096 * input-file.c: Likewise.
4097 * listing.c: Likewise.
4098 * macro.h: Likewise.
4099 * stabs.c: Likewise.
4100 * symbols.c: Likewise.
4101
4102 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4103
4104 * config/obj-generic.c: Delete file.
4105 * config/obj-generic.h: Likewise.
4106
4107 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4108
4109 * config/tc-avr.c (mcu_types): Update for new devices.
4110
4111 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4112
4113 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4114
4115 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4116
4117 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4118 worked sometimes by accident. Fix copy&paste comment.
4119
4120 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4121
4122 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4123 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4124 (mips_elf_final_processing): Let n32 use .reginfo.
4125
4126 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4127
4128 * config/tc-mips.c (append_insn): Fix too small range of variable.
4129
4130 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4131
4132 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4133 listing_prev_line().
4134
4135 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4136
4137 * config/tc-arm.c (md_assemble): Remove redundant call to
4138 listing_prev().
4139
4140 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4141 loc_directive_seen.
4142
4143 * stabs.c (s_stab_generic): Fix grammatical error in warning
4144 message.
4145
4146 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4147
4148 * write.c (subsegs_finish): Don't specially align last subseg.
4149
4150 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4151
4152 * stabs.c (s_stab_generic): Warn about a description field that is
4153 too big.
4154
4155 * config/obj-coff.c: Fix compile time warnings when compiling
4156 without BFD_ASSEMBLER defined.
4157 Fix formatting.
4158
4159 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4160 target.
4161 (md_pcrel_from_section): Use md_pcrel_from().
4162
4163 2002-05-11 Bruno Haible <bruno@clisp.org>
4164
4165 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4166 by dwarf2_directive_loc, instead of calling dwarf2_where.
4167
4168 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4169
4170 * config/obj-coff.h: Fix formatting.
4171 * config/tc-mcore.c: Likewise.
4172 * config/tc-mn10300.c: Likewise.
4173 * config/tc-openrisc.c: Likewise.
4174 * config/tc-or32.c: Likewise.
4175 * config/tc-pdp11.c: Likewise.
4176 * config/tc-ppc.c: Likewise.
4177 * config/tc-ppc.h: Likewise.
4178 * config/tc-sh64.c: Likewise.
4179 * config/tc-sh.c: Likewise.
4180 * config/tc-tic54x.c: Likewise.
4181 * config/tc-xstormy16.c: Likewise.
4182 * config/tc-xstormy16.h: Likewise.
4183
4184 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4185
4186 * config/obj-coff.c: Fix formatting.
4187 * config/obj-elf.c: Likewise.
4188 * config/tc-alpha.c: Likewise.
4189 * config/tc-arm.c: Likewise.
4190 * config/tc-d10v.c: Likewise.
4191 * config/tc-d30v.c: Likewise.
4192 * config/tc-h8300.c: Likewise.
4193 * config/tc-hppa.c: Likewise.
4194
4195 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4196
4197 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4198 reloc when no_cond_jump_promotion.
4199
4200 2002-05-08 Jim Wilson <wilson@redhat.com>
4201
4202 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4203 current variable part of frag.
4204
4205 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4206
4207 * config/tc-mmix.c: Fix formatting.
4208 * config/tc-mmix.h: Likewise.
4209
4210 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4211
4212 * configure: Regenerate.
4213
4214 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4215
4216 * config/tc-m68k.c: Fix formatting.
4217
4218 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4219
4220 * Makefile.am: Honour DESTDIR.
4221 * Makefile.in: Regenerate.
4222
4223 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4224
4225 * config/tc-ia64.c: Fix formatting.
4226 * config/tc-ia64.h: Likewise.
4227
4228 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4229
4230 * config/tc-mips.c: Fix formatting.
4231 * config/tc-s390.c: Likewise.
4232 * config/tc-s390.h: Likewise.
4233
4234 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4235
4236 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4237 information for instructions.
4238
4239 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4240
4241 * as.h: Fix formatting.
4242 * cgen.c: Likewise.
4243 * cgen.h: Likewise.
4244 * dwarf2dbg.c: Likewise.
4245 * frags.h: Likewise.
4246 * gasp.c: Likewise.
4247 * macro.c: Likewise.
4248 * read.c: Likewise.
4249 * stabs.c: Likewise.
4250 * symbols.c: Likewise.
4251
4252 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4253
4254 * app.c (mri_pseudo): Only declare for TC_M68K.
4255
4256 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4257 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4258 BFD_RELOC_16_BASEREL.
4259 (md_assemble): Likewise.
4260 (md_apply_fix3): Likewise.
4261
4262 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4263
4264 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4265 zero into an add of zero - it is not the same.
4266
4267 2002-05-01 Arati Dikey <aratid@kpit.com>
4268
4269 * tc-sh.c (get_specific): Generate warning if the same
4270 destination register is used in parallel instructions.
4271
4272 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4273
4274 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4275
4276 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4277
4278 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4279 backwards to prevent cascading errors.
4280
4281 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4282
4283 * configure.in: Add support for powerpc-*-windiss.
4284 * configure: Regenerated.
4285
4286 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4287
4288 * config/tc-s390.c (md_parse_option): Formatting.
4289
4290 * config/tc-i386.c: Formatting fixes, add missing space in error
4291 message.
4292
4293 2002-04-24 Christian Groessler <chris@groessler.org>
4294
4295 * config/tc-z8k.c (build_bytes): Add support for new cases:
4296 CLASS_IGNORE and ARG_NIM4.
4297 (md_assemble): Prevent destruction of input_line_pointer if
4298 get_operands returns failure.
4299
4300 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4301
4302 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4303 instructions to be generated by macros.
4304
4305 2002-04-24 Andreas Schwab <schwab@suse.de>
4306
4307 * config/tc-i386.c (output_jump, output_disp)
4308 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4309 more.
4310 (md_apply_fix3): Remember addend value for rela relocations.
4311 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4312
4313 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4314
4315 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4316 from previous change.
4317
4318 2002-04-22 Eric Christopher <echristo@redhat.com>
4319
4320 * config/tc-mips.c (macro_build): Add warning if macro instructions
4321 are expanded into a branch delay slot.
4322
4323 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4324
4325 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4326 numbers, gdb relies on them to detect the start of the prologue.
4327
4328 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4329
4330 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4331 symbols in merge sections.
4332
4333 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4334
4335 * as.c (main): Don't reference _bfd_chunksize.
4336
4337 2002-04-15 Tom Rix <trix@redhat.com>
4338
4339 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4340 symbols in merge sections.
4341
4342 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4343
4344 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4345 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4346 argument for the precision.
4347 (gen_to_words): Update accordingly.
4348
4349 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4350
4351 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4352 BFD_VERSION_STRING unavailable.
4353 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4354
4355 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4356
4357 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4358 symbol_used_in_reloc_p is true.
4359
4360 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4361 endian hosts.
4362
4363 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4364
4365 * dep-in.sed: Cope with absolute paths.
4366 * Makefile.am (dep.sed): Subst TOPDIR.
4367 Run "make dep-am".
4368 * Makefile.in: Regenerate.
4369
4370 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4371
4372 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4373 (mips_ip): Remove unused variable.
4374 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4375 unsigned char with bfd_byte.
4376 (s_file): Remove unused variable.
4377 (s_mips_ent): Likewise.
4378
4379 2002-04-03 Tom Rix <trix@redhat.com>
4380
4381 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4382 (build_insn): Same.
4383 (find_opcode): Fix warning in as_warn.
4384 * config/tc-d10v.h: Update Copyright.
4385
4386 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4387 Tom Rix <trix@redhat.com>
4388
4389 From Jeff Knaggs <jknaggs@redhat.com>
4390 * config/tc-d10v.c (check_resource_conflict): New function to
4391 check for resource conflicts.
4392
4393 From Jason Eckhardt <jle@redhat.com>
4394 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4395 imm3 fields.
4396 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4397 reserved control registers is used.
4398 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4399 imm3 fields.
4400
4401 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4402 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4403 instruction cannot be packed.
4404
4405 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4406 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4407 write-write conflicts.
4408 (md_assemble): Reformat introductory comment.
4409 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4410 arguments.
4411
4412 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4413
4414 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4415 O_logical_not>): Derive final_seg from add_symbol.
4416 <O_multiply..O_logical_or>: More final_seg twiddles.
4417
4418 2002-04-01 Jessica Han <jessica@cup.hp.com>
4419
4420 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4421 in 32-bit mode.
4422
4423 2002-03-27 Andreas Schwab <schwab@suse.de>
4424
4425 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4426 field for pc-relative fixups.
4427 (output_disp): Likewise.
4428 (md_estimate_size_before_relax): Likewise.
4429 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4430 pc-relative fixups in 64bit mode.
4431
4432 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4433
4434 * config/te-aix5.h: Typo fix.
4435
4436 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4437
4438 * Makefile.am: Run "make dep-am".
4439 * Makefile.in: Regenerate.
4440 * doc/Makefile.in: Regenerate.
4441
4442 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4443
4444 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4445 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4446
4447 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4448
4449 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4450 the EXTENDED bit here; report the estimate according to the
4451 current size.
4452
4453 2002-03-18 Tom Rix <trix@redhat.com>
4454
4455 * configure.in: Add AIX 5 support.
4456 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4457 * config/te-aix5.h: New file. AIX 5 support.
4458 * configure: Regenerate.
4459
4460 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4461
4462 * po/fr.po: Updated version.
4463
4464 2002-03-16 Andreas Jaeger <aj@suse.de>
4465
4466 * doc/c-mips.texi (Machine Dependencies): Add new node.
4467
4468 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4469
4470 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4471 (mips_opts): Initialize "ase_mips3d" member.
4472 (file_ase_mips3d): New variable.
4473 (CPU_HAS_MIPS3D): New macro.
4474 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4475 based on command line options and configuration defaults.
4476 (macro_build, mips_ip): Accept MIPS-3D instructions if
4477 mips_opts.ase_mips3d is set.
4478 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4479 Add support for "-mips3d" and "-no-mips3d" options.
4480 (OPTION_ELF_BASE): Move to accomodate new options.
4481 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4482 (mips_elf_final_processing): Add a comment indicating that a
4483 MIPS-3D ASE ELF header flag should be set, when one exists.
4484 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4485 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4486 nomips3d" directives.
4487
4488 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4489
4490 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4491 a weak symbol in same section to be within reach.
4492
4493 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4494
4495 * po/fr.po: Updated version.
4496
4497 2002-03-12 Andreas Schwab <schwab@suse.de>
4498
4499 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4500 body record so that an error is given for misplaced .save
4501 pseudo-ops.
4502
4503 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4504
4505 * config/tc-i386.h (REX_OPCODE): Define.
4506 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4507 (rex_byte): typedef to int.
4508 * config/tc-i386.c: Group prototypes and vars together.
4509 Formatting fixes. Remove occurrences of "register" keyword.
4510 (true): Delete.
4511 (false): Delete.
4512 (mode_from_disp_size): Add INLINE keyword to prototype.
4513 (fits_in_signed_byte): Likewise.
4514 (fits_in_unsigned_byte): Likewise.
4515 (fits_in_unsigned_word): Likewise.
4516 (fits_in_signed_word): Likewise.
4517 (fits_in_unsigned_long): Likewise.
4518 (fits_in_signed_long): Likewise.
4519 (type_names): Constify.
4520 (intel_float_operand): Constify param.
4521 (add_prefix): Use REX_OPCODE.
4522 (md_assemble): Likewise. Modify for changed rex_byte.
4523 (parse_insn): Split out of md_assemble.
4524 (parse_operands): Likewise.
4525 (swap_operands): Likewise.
4526 (optimize_imm): Likewise.
4527 (optimize_disp): Likewise.
4528 (match_template): Likewise.
4529 (check_string): Likewise.
4530 (process_suffix): Likewise.
4531 (check_byte_reg): Likewise.
4532 (check_long_reg): Likewise.
4533 (check_qword_reg): Likewise.
4534 (check_word_reg): Likewise.
4535 (finalize_imm): Likewise.
4536 (process_operands): Likewise.
4537 (build_modrm_byte): Likewise.
4538 (output_insn): Likewise.
4539 (output_branch): Likewise.
4540 (output_jump): Likewise.
4541 (output_interseg_jump): Likewise.
4542 (output_disp): Likewise.
4543 (output_imm): Likewise.
4544
4545 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4546
4547 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4548
4549 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4550
4551 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4552 relocs except when BFD64.
4553
4554 * write.c (number_to_chars_bigendian): Don't abort when N is
4555 larger than sizeof (VAL).
4556 (number_to_chars_littleendian): Likewise.
4557
4558 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4559
4560 * config/tc-hppa.c (md_apply_fix3): Add cast.
4561 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4562 e_rrsel.
4563
4564 2002-03-05 Paul Koning <pkoning@equallogic.com>
4565
4566 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4567 (parse_ac5): New function for parsing float regs in float operand.
4568 (parse_expression): Remove attempt to make literals be octal.
4569 (parse_op_no_deferred): Support float literals.
4570 (parse_op): Reject attempts to refer to float regs.
4571 (parse_fop): New function, like parse_op but for float operand.
4572 (md_assemble): Add cases to parse float operands. Also fix
4573 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4574
4575 2002-03-04 H.J. Lu <hjl@gnu.org>
4576
4577 * config/obj-elf.c (special_section): Add .init_array,
4578 .fini_array and .preinit_array.
4579
4580 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4581 .init_array and .fini_array.
4582
4583 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4584
4585 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4586 visibility.
4587 (obj_frob_symbol): Copy visibility.
4588
4589 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4590
4591 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4592 s_text.
4593 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4594
4595 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4596
4597 * po/es.po: Updated.
4598
4599 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4600
4601 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4602 only, undo the changes made on 2001-06-08, with the
4603 effect being that common or extern symbols are
4604 adjusted for embedded-PIC, but weak symbols are not.
4605 (md_estimate_size_before_relax: Likewise, with the effect
4606 that extern symbols are treated the same as weak symbols
4607 only if not embedded-PIC.
4608 (mips_fix_adjustable) Likewise, with the effect that
4609 weak or extern symbols are not adjusted for embedded-PIC.
4610 (md_apply_fix3): Tweak so that the case where value is zero
4611 is handled more correctly for embedded-PIC code.
4612
4613 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4614
4615 * doc/as.texinfo (Overview): Add missing @ifset IA64
4616
4617 * configure.in (LINGUAS): Add es.po.
4618 * configure: Regenerate.
4619 * po/es.po: New file.
4620
4621 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4622
4623 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4624 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4625 and NO_PIC cases. Code cleanup.
4626 (macro2): Fix handling of 64bit register loads.
4627
4628 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4629
4630 * doc/as.texinfo: Add entry for IA64.
4631 * doc/c-ia64.texi: New file.
4632
4633 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4634
4635 * config/tc-hppa.c: Update copyright date.
4636
4637 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4638 Remove references to chip manufacturers.
4639 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4640 Correct comments.
4641 (md_show_usage): Remove references to chip manufacturers. Mention
4642 -mpower4.
4643 (md_begin): Test power4 opcode flag bits.
4644
4645 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4646
4647 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4648 count exceeds prologue count.
4649 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4650 (unwind.label_prologue_count): New member.
4651
4652 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4653
4654 (get_saved_prologue_count): New function.
4655 (save_prologue_count): New function.
4656 (free_saved_prologue_count): New function.
4657 (dot_label_state): Record state label by calling save_prologue_count().
4658 (dot_copy_state): Restore prologue count by calling
4659 get_saved_prologue_count().
4660 (generate_unwind_image): Free up list of saved prologue
4661 counts by calling free_saved_prologue_counts().
4662
4663 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4664
4665 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4666 function declarations.
4667
4668 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4669
4670 * NEWS: Note that GASP is now deprecated.
4671 * Makefile.am: Do not build gasp-new by default.
4672 * Makefile.in: Regenerate.
4673 * doc/Makefile.am: Do not install gasp.info.
4674 * doc/Makefile.in: Regenerate.
4675 * gas/gasp.texi: Note that gasp is now deprecated.
4676
4677 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4678
4679 * NEWS: Mark 2.12 branch.
4680
4681 2002-02-19 Tom Tromey <tromey@redhat.com>
4682
4683 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4684
4685 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4686
4687 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4688 option input.
4689
4690 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4691
4692 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4693 Make bit size independent of architecture switch.
4694 (md_begin): Add warning for -m64 with -Aesa.
4695 (s390_md_end): Use renamed architecture defines.
4696
4697 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4698
4699 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4700
4701 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4702
4703 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4704 instead of CRIS.
4705
4706 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4707
4708 * config/tc-mips.c (md_estimate_size_before_relax): Really
4709 make sure we treat weak like extern only for ELF. (Fixes
4710 patch from 2001-07-25.)
4711
4712 2002-02-15 Ben Elliston <bje@redhat.com>
4713
4714 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4715 works as expected.
4716
4717 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4718
4719 * NEWS: Mention support for MMIX.
4720
4721 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4722
4723 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4724 a sequence of indpendent 'if' statements for easier debugging
4725 and future modification.
4726
4727 2002-02-13 Matt Fredette <fredette@netbsd.org>
4728
4729 * config/tc-m68k.c (md_show_usage): No longer display a
4730 hard-coded "68020" for the default CPU, instead display the
4731 canonical name of the true, configured default CPU.
4732 (m68k_elf_final_processing): Mark objects for sub-68020
4733 CPUs with the new EF_M68000 flag.
4734
4735 2002-02-13 Andreas Schwab <schwab@suse.de>
4736
4737 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4738 pc-relative relocations to merge sections in 64-bit mode.
4739
4740 2002-02-13 Ben Elliston <bje@redhat.com>
4741
4742 * NEWS: Document floating point number handling in gasp.
4743 * gasp.c: Include <assert.h> and "xregex.h".
4744 (is_flonum): New function.
4745 (chew_flownum): Likewise.
4746 (change_base): Consume flonums from the input, where possible.
4747 * doc/gasp.texi (Constants): Document floating point numbers.
4748
4749 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4750
4751 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4752 that implicitly use LR and RR selectors.
4753
4754 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4755
4756 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4757 and `epsw' as available on AM33 and above only.
4758 (other_register_name): Add logic to handle machine type encoded in
4759 reg_number.
4760
4761 2002-02-11 Tom Rix <trix@redhat.com>
4762
4763 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4764 xcoff64.
4765
4766 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4767
4768 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4769 Use all over.
4770
4771 2002-02-11 Jan Hubicka <jh@suse.cz>
4772
4773 * i386.c (md_assemble): Support 32bit address prefix.
4774 (i386_displacement): Likewise.
4775 (i386_index_check): Accept 32bit addressing in 64bit mode.
4776
4777 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4778
4779 * config/tc-sh.c (dot): Removed unused function.
4780
4781 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4782
4783 * Makefile.am: "make dep-am".
4784 * Makefile.in: Regenerate.
4785 * aclocal.m4: Regenerate.
4786 * config.in: Regenerate.
4787 * configure: Regenerate.
4788 * doc/Makefile.in: Regenerate.
4789
4790 2002-02-10 Richard Henderson <rth@redhat.com>
4791
4792 * doc/c-alpha.texi: New file.
4793 * doc/Makefile.am (CPU_DOCS): Add it.
4794 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4795
4796 2002-02-09 Richard Henderson <rth@redhat.com>
4797
4798 * config/tc-alpha.c (O_samegp): New.
4799 (USER_RELOC_P): Include it.
4800 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4801 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4802 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4803 (alpha_validate_fix): New.
4804 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4805
4806 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4807
4808 * doc/c-cris.texi: New.
4809 * doc/all.texi: @set CRIS.
4810 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4811 Include c-cris.texi.
4812 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4813 * doc/Makefile.in: Regenerate.
4814
4815 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4816
4817 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4818 determine if a number is a sign-extended 32-bit number.
4819 (load_register): Use IS_SEXT_32BIT_NUM.
4820 (macro): Check if load/store macro handling is using a
4821 constant 32-bit address on 64-bit address systems, and if
4822 so optimize the generation of that address.
4823
4824 2002-02-08 Richard Henderson <rth@redhat.com>
4825
4826 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4827 we've eliminated all foreign relocation types yet.
4828 (alpha_fix_adjustable): Likewise.
4829
4830 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4831
4832 Contribute sh64-elf.
4833 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4834 Stephen Clarke <Stephen.Clarke@st.com>
4835 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4836 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4837 * config/tc-sh.c (md_relax_table): Added default sizes for
4838 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4839 MOVI_16, MOVI_32 and MOVI_48.
4840 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4841 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4842 and MOVI_16.
4843 (shmedia_md_estimate_size_before_relax): Remove redundant
4844 blocks. Set fragP->fr_var even if relaxation type unchanged.
4845 Retain UNDEF_MOVI until expression decays to number.
4846 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4847 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4848 relocation types. Take fixP->fx_addnumber into account too.
4849 (shmedia_md_apply_fix): Likewise.
4850 (shmedia_md_convert_frag): Likewise.
4851 (shmedia_build_Mytes): Likewise.
4852 (sh64_consume_datalabel): Complain about nested datalabel.
4853 Support PIC relocs. Call sh_parse_name.
4854 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4855 in tc-sh.h to SHmedia reloc types.
4856 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4857 MOVI_GOTPC): New relaxation constants.
4858 (md_relax_table): Introduce relaxation directives for PIC-related
4859 constants.
4860 (sh_PIC_related_p): Handle datalabel.
4861 (sh_check_fixup): Choose SH5 PIC relocations.
4862 (sh_cons_fix_new): Added BDF_RELOC_64.
4863 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4864 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4865 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4866 current ISA is SHmedia, get 7 bytes.
4867 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4868 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4869 void function.
4870 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4871 shmedia_apply_fix3 and make void.
4872 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4873 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4874 as_bad.
4875 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4876 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4877 2001-03-14 DJ Delorie <dj@redhat.com>
4878 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4879 * doc/Makefile.in(CPU_DOCS): Ditto.
4880 * doc/c-sh64.texi: New file.
4881 * doc/as.texinfo: Add SH64 support.
4882 2001-03-13 DJ Delorie <dj@redhat.com>
4883 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4884 A_REUSE_PREV so that its purpose is more obvious.
4885 (shmedia_build_Mytes): Ditto.
4886 2001-03-07 DJ Delorie <dj@redhat.com>
4887 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4888 before processing.
4889 (sh64_vtable_inherit): Ditto.
4890 (strip_datalabels): New, strip "datalabel" from given line.
4891 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4892 pseudos.
4893 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4894 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4895 call ...
4896 (shmedia_build_Mytes): ... to here.
4897 2001-03-06 DJ Delorie <dj@redhat.com>
4898 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4899 is a generic one.
4900 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4901 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4902 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4903 address by one in call to dwarf2_emit_insn.
4904 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4905 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4906 alignment handling broken by imported changes.
4907 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4908 (sh64_handle_align): Declare.
4909 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4910 (sh64_max_mem_for_rs_align_code): Declare.
4911 (enum sh64_isa_values): Moved here from tc-sh64.c.
4912 (md_do_align): Define.
4913 (sh64_do_align): Declare.
4914 (struct sh64_tc_frag_data): New.
4915 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4916 changed.
4917 (TC_FRAG_INIT): Change to set new datatype.
4918 (struct sh64_segment_info_type): Rename member
4919 last_flushed_location to last_contents_mark. All users changed.
4920 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4921 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4922 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4923 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4924 of unsetting seen_insn.
4925 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4926 call sh64_update_contents_mark.
4927 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4928 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4929 enum sh64_isa_values.
4930 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4931 (emitting_crange): Boolean guard moved to file scope from function
4932 scope in sh64_set_contents_type.
4933 (s_sh64_abi): New.
4934 (sh64_update_contents_mark): New; most split out from
4935 sh64_flush_pending_output.
4936 (shmedia_md_end): Call sh64_update_contents_mark. Set
4937 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4938 (sh64_do_align): New function.
4939 (sh64_max_mem_for_rs_align_code): New function.
4940 (sh64_handle_align): Rename from shmedia_do_align. Make
4941 non-static. Add head comment. Emit zero bytes for n bytes modulo
4942 four. Change return-type to void.
4943 (shmedia_elf_new_section): Remove.
4944 (shmedia_md_assemble): Call sh64_update_contents_mark.
4945 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4946 new frag. Call sh64_update_contents_mark after making the new
4947 frag.
4948 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4949 and sh_flush_pending_output.
4950 (sh64_flag_output): Also call md_flush_pending_output, but add
4951 condition on not emitting_crange.
4952 (sh64_tc_cons_fix_new): Remove.
4953 2001-01-12 Nick Clifton <nickc@redhat.com>
4954 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4955 alignment handling scheme imported from sourceware.
4956 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4957 * config/tc-sh64.h (TARGET_FORMAT): Define.
4958 (sh64_target_format): Prototype.
4959 * config/tc-sh64.c (sh64_target_mach): New function.
4960 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4961 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4962 zero_address_frag instead of copying the frag of the symbol.
4963 (shmedia_frob_file_before_adjust): Ditto.
4964 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4965 to valueT to remove signedness.
4966 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4967 headers to output_bfd. Do not evaluate symbols if final is false;
4968 do emit fixups.
4969 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4970 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4971 to the current frag, call shmedia_md_convert_frag to emit fixups
4972 and make frag_wane neutralize the frag. Update comments.
4973 * config/tc-sh.c (md_convert_frag): Change caller of
4974 shmedia_md_convert_frag.
4975 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4976 * config/tc-sh64.h: Tweak comments and correct formatting.
4977 * config/tc-sh64.c: Ditto.
4978 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4979 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4980 for the no-relocation case.
4981 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4982 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4983 wrappers.
4984 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4985 comment.
4986 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4987 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4988 expansion.
4989 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4990 Correct comment.
4991 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4992 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4993 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4994 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4995 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4996 if reloc is emitted.
4997 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4998 New options plus bugfixes.
4999 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5000 "-expand-pt32".
5001 (md_parse_option): Handle new options.
5002 (md_show_usage): Add blurb for new options.
5003 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5004 (sh64_expand, sh64_pt32): New variables.
5005 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5006 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5007 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5008 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5009 <resolved previously-pc-relative relocs>: Handle
5010 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5011 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5012 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5013 points to SHcompact code.
5014 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5015 SH64PCREL16)>: Check that ISA of what operand points at and
5016 PTA/PTB matches, or emit error.
5017 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5018 SHMEDIA_BFD_RELOC_PT.
5019 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5020 operand.
5021 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5022 condition for MOVI expansion.
5023 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5024 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5025 sh64_expand.
5026 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5027 fixup.
5028 (sh64_target_format): Error-check setting of sh64_pt32 and
5029 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5030 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5031 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5032 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5033 * config/tc-sh64.c: Improve comments.
5034 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5035 not say the linker will check correctness of PTA/PTB expansion.
5036 (shmedia_md_end): Make non-static.
5037 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5038 prototype.
5039 * config/tc-sh.c (sh_finalize): Remove.
5040 * config/tc-sh.h (md_end): Do not define.
5041 Remove prototype for sh_finalize.
5042 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5043 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5044 sh64_section_data container when storing section type in tdata
5045 field in elf_section_data.
5046 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5047 EF_SH5.
5048 * Makefile.am: Update dependencies.
5049 * Makefile.in: Regenerate.
5050 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5051 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5052 dwarf2_emit_insn call with test on debug_type.
5053 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5054 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5055 CRT_SH5_ISA32 sticky for 64-bit.
5056 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5057 Generate .crange sections when switching ISA mode or emitting
5058 constants in same section as code.
5059 * config/tc-sh64.c: Reformat structure definitions.
5060 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5061 variables.
5062 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5063 to emit a .cranges descriptor when contents type changes. Only
5064 emit error if changing contents type and -no-mix is in effect.
5065 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5066 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5067 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5068 sh64_flush_last_crange over sections.
5069 When checking main symbol of datalabel symbol, check for
5070 STO_SH5_ISA32, not ISA type of section in definition.
5071 (shmedia_frob_file_before_adjust): Check main symbol for
5072 STO_SH5_ISA32; don't check ISA type of section in definition.
5073 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5074 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5075 .cranges entries have been output.
5076 (shmedia_elf_new_section): Just call md_flush_pending_output.
5077 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5078 fix. Do not set tc_segment_info_data.in_code for section. Call
5079 sh64_set_contents_type for SHmedia code.
5080 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5081 false. Call md_flush_pending_output.
5082 (sh64_target_format): Check that -no-mix and
5083 -shcompact-const-crange are used in sane combination with other
5084 options.
5085 (shmedia_md_pcrel_from_section): Check type of fix for how to
5086 adjust pc-relative.
5087 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5088 not ISA type of section in definition.
5089 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5090 hold contents-type state.
5091 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5092 (sh64_flush_pending_output): Declare.
5093 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5094 (sh64_tc_cons_fix_new): Declare.
5095 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5096 call sh64_flag_output.
5097 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5098 call sh64_set_contents_type to mark SHcompact code and set
5099 seen_insn.
5100 (md_longopts): New options "-no-mix" and
5101 "-shcompact-const-crange".
5102 (md_parse_option): Handle new options.
5103 (md_show_usage): Add blurb for new options.
5104 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5105 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5106 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5107 (sh64_last_insn_frag): New.
5108 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5109 to get frag for insn opcode for generating fixups; do not assume it
5110 is the same frag.
5111 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5112 for new insn.
5113 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5114 section.
5115 (TC_FRAG_TYPE): Define as fragS *.
5116 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5117 (sh64_last_insn_frag): Declare.
5118 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5119 not == NULL before dereferencing.
5120 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5121 Get rid of BFD section flag and EF_SH64_ABI64.
5122 * config/tc-sh64.c (shmedia_frob_section_type): Use
5123 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5124 communicate the section as containing SHmedia code. Describe why.
5125 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5126 EF_SH64 regardless of ABI.
5127 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5128 in error message. Handle resolved expressions for
5129 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5130 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5131 (shmedia_check_limits): Handle BFD_RELOC_64.
5132 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5133 a STO_SH5_ISA32 symbol, only the BFD value.
5134 2000-12-11 Ben Elliston <bje@redhat.com>
5135 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5136 dwarf2_generate_asm_lineno.
5137 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5138 Handle PC-relative MOVI expansions with assembler relaxation.
5139 Generate PC-relative relocs from 16-bit PC-relative expressions.
5140 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5141 (shmedia_md_pcrel_from_section): ...here.
5142 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5143 turned completely resolved. Adjust relocation type for 16-bit
5144 immediate operands that has turned PC-relative. Adjust back for
5145 MD_PCREL_FROM_SECTION being applied twice.
5146 (shmedia_md_convert_frag): Always emit reloc for expression with
5147 global or weak symbol. Handle relaxation result for PC-relative
5148 expressions.
5149 (shmedia_md_estimate_size_before_relax): An expression with a weak
5150 or global symbol can not be relaxed. Break out tests for
5151 relaxable symbol into variable sym_relaxable.
5152 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5153 UNDEF_MOVI)>: Break out any PC-relative expression and change
5154 relaxation type.
5155 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5156 opjp.
5157 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5158 MOVI expansion. If X_op_symbol of the immediate expression is
5159 set, make an expression symbol for the argument to frag_var.
5160 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5161 relaxations.
5162 (END): Adjust for new relaxations.
5163 (md_relax_table): Add entries for new relaxations.
5164 2000-12-07 Ben Elliston <bje@redhat.com>
5165 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5166 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5167 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5168 SHORI operand offsets in PT/PTA/PTB expansions.
5169 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5170 Implement DataLabel semantics.
5171 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5172 shmedia_frob_file_before_adjust.
5173 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5174 (DATALABEL_SUFFIX): Define.
5175 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5176 symbol list to update "datalabel" symbols to their main symbol
5177 counterparts.
5178 (shmedia_frob_file_before_adjust): New.
5179 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5180 undefined and set STT_DATALABEL.
5181 (sh64_frob_label): Initialize TC symbol field.
5182 (sh64_consume_datalabel): Actually implement semantics. New
5183 parameter operandf, call it instead of expression.
5184 (sh64_exclude_symbol): New.
5185 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5186 to sh64_consume_datalabel.
5187 (tc_symbol_new_hook): Define to tc_frob_symbol.
5188 (TC_SYMFIELD_TYPE): Define to symbolS *.
5189 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5190 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5191 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5192 case.
5193 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5194 generating dwarf2 debug information.
5195 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5196 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5197 elf64-sh64 for the 64-bit ABI.
5198 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5199 option.
5200 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5201 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5202 case-insensitivity.
5203 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5204 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5205 (enum sh64_abi_values): New type.
5206 (enum sh64_isa_values): New type.
5207 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5208 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5209 (sh64_abi): Replace shmedia_64.
5210 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5211 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5212 (s_sh64_mode): Check validity for this target.
5213 (sh64_target_format): Initialize defaults for ISA and ABI.
5214 Fallback to old object format if no SH64 ISA or ABI has been
5215 specified.
5216 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5217 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5218 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5219 * config/tc-sh64.h: Fix typo in comment.
5220 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5221 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5222 <PT fixups for absolute values>: Size will be longest, not
5223 shortest.
5224 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5225 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5226 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5227 and l1 to hold lowercase of two first characters. Change all
5228 remaining TO_LOWER to tolower.
5229 * config/tc-sh64.c (TO_LOWER): Delete.
5230 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5231 (md_parse_name): Define.
5232 (sh64_consume_datalabel): Declare.
5233 (DOLLAR_DOT): Define.
5234 * config/tc-sh64.c (shmedia_parse_exp): New.
5235 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5236 (shmedia_parse_reg): Remove const from src
5237 parameter.
5238 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5239 (shmedia_md_assemble): Ditto for op_end variable.
5240 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5241 Use shmedia_parse_exp, not parse_exp.
5242 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5243 parameter. All callers changed.
5244 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5245 callers changed.
5246 (shmedia_parse_reg): Put first two character in local variables.
5247 Use tolower, not TO_LOWER. If no register is found and argtype
5248 indicates a control register, scan shmedia_creg_table
5249 case-insensitive.
5250 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5251 * Makefile.am (CPU_TYPES): Add sh64.
5252 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5253 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5254 Regenerate dependencies.
5255 * Makefile.in: Regenerate.
5256 * configure.in: Add support for sh64-*-elf*.
5257 * configure: Regenerate.
5258 * config/tc-sh64.h: New.
5259 * config/tc-sh64.c: New.
5260 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5261 .mode, .isa and .uaquad.
5262 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5263 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5264 [HAVE_SH64] (END): Define as 10.
5265 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5266 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5267 MOVI_64): Define.
5268 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5269 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5270 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5271 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5272 Define.
5273 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5274 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5275 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5276 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5277 SHmedia instructions. Handle state-change after switching to
5278 SHcompact.
5279 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5280 (md_parse_option) [HAVE_SH64]: Parse new options.
5281 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5282 (md_convert_frag) [HAVE_SH64] <default>: Call
5283 shmedia_md_convert_frag instead of abort.
5284 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5285 BFD_RELOC_SH_SHMEDIA_CODE.
5286 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5287 SHcompact or SHmedia code.
5288 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5289 shmedia_md_apply_fix instead of abort.
5290 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5291 result from calling shmedia_md_estimate_size_before_relax instead
5292 of calling abort.
5293 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5294 do the work.
5295 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5296 shmedia_init_reloc and do nothing more if it returns non-zero.
5297 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5298 * po/POTFILES.in: Regenerate.
5299 * po/gas.pot: Regenerate.
5300
5301 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5302
5303 * config/tc-sh.c (parse_at): Install the correct version of
5304 2002-02-04's patch.
5305
5306 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5307 assume fixP->fx_subsy is non-NULL.
5308
5309 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5310
5311 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5312 A_DISP_PC_ABS, and adjust it by -4.
5313 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5314 expected.
5315 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5316 the operand type is not A_DISP_PC_ABS.
5317
5318 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5319
5320 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5321 common and weak symbols. Handle common and weak symbols as
5322 undefined symbols with regards to GREG handling and merging.
5323 (mmix_frob_file): Ditto.
5324
5325 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5326
5327 * configure.in (hppa-*-netbsd*): New target.
5328 * configure: Regenerate.
5329 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5330
5331 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5332
5333 * config/tc-v850.c: Add missing prototypes amd use old-style
5334 function definitions.
5335 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5336 (sdata_section tdata_section, zdata_section, sbss_section,
5337 tbss_section, zbss_section, rosdata_section, rozdata_section,
5338 scommon_section, tcommon_section, zcommon_section,
5339 call_table_data_section, call_table_text_section): Delete.
5340 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5341 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5342 v850_call_table_data, v850_call_table_text): Delete.
5343 (struct v850_seg_entry): New.
5344 (v850_seg_table): New.
5345 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5346 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5347 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5348 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5349 (do_v850_seg): New.
5350 (v850_seg): New.
5351 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5352 recording of alignment.
5353 (md_pseudo_table): Use v850_seg.
5354 (md_begin): Don't init .call_table_data and .call_table_text here.
5355 Set v850_seg_table bss entry.
5356
5357 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5358
5359 Support on-demand global register allocation by passing on
5360 base-plus-offset relocs to the linker.
5361 * config/tc-mmix.c: Tweak and fix typos in comments.
5362 (allocate_undefined_gregs_in_linker): New variable.
5363 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5364 (md_longopts): Add --linker-allocated-gregs.
5365 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5366 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5367 (md_show_usage): Update text for -x. Add text for
5368 --linker-allocated-gregs.
5369 (tc_gen_reloc): Derive default value for addend from val and
5370 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5371 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5372 GREG if allocate_undefined_gregs_in_linker.
5373 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5374 --linker-allocated-gregs.
5375 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5376 --linker-allocated-gregs. Mention that it's implied by -x.
5377 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5378 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5379
5380 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5381
5382 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5383
5384 * Makefile.am: Run "make dep-am"
5385 * Makefile.in: Regenerate.
5386
5387 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5388
5389 * config/tc-or32.c: New file.
5390 * config/tc-or32.h: New file.
5391 * configure.in: Add support for or32 targets.
5392 * configure: Regenerate.
5393 * config/obj-coff.c: Add support for or32 targets.
5394 * config/obj-coff.h: Add support for or32 targets.
5395 * Makefile.am: Add support for or32 targets.
5396 * Makefile.in: Regenerate.
5397 * NEWS: Mention support for OpenRISC.
5398 * doc/Makefile.in: Regenerate.
5399 * po/POTFILES.in: Regenerate.
5400 * po/gas.pot: Regenerate.
5401
5402 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5403
5404 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5405 and mod.
5406
5407 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5408
5409 * config/tc-mips.c (tc_gen_reloc): Arrange for
5410 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5411 their LO16 parts, even for ELF.
5412
5413 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5414
5415 * config/tc-i386.c: Protect definitions of true and false
5416 from redefinition.
5417
5418 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5419
5420 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5421 made because of .weak, if they are neither defined nor used in any
5422 way.
5423
5424 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5425
5426 * configure: Regenerated.
5427
5428 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5429
5430 * doc/Makefile.am (install): Depend on install-info.
5431 * doc/Makefile.in: Regenerate.
5432
5433 2002-01-26 Nick Clifton <nick@redhat.com>
5434
5435 * po/fr.po: Updated version
5436
5437 2002-01-24 Kazu Hirata <kazu@hxi.com>
5438
5439 * config/tc-h8300.c (check_operand): Don't print a warning
5440 when a valid 24-bit address is given to a 16-bit address
5441 operand.
5442
5443 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5444
5445 * config/tc-sh.c (sh_elf_suffix): Removed.
5446 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5447 sh_end_of_match, sh_parse_name): New functions.
5448 (sh_elf_cons): Simplify.
5449 (parse_exp): Reject misplaced PIC operands.
5450 (md_undefined_symbol): Simplify.
5451 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5452 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5453 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5454 Complain if subsy remains at the end.
5455 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5456 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5457
5458 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5459
5460 * config/tc-mn10300.c (xr_registers): Move `pc'...
5461 (other_registers): ... here.
5462
5463 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5464
5465 * Makefile.am: Run "make dep-am".
5466 * Makefile.in: Regenerate.
5467 * gas/po/POTFILES.in: Regenerate.
5468
5469 2002-01-21 DJ Delorie <dj@redhat.com>
5470
5471 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5472 stabstr_name allocation permanent, as it will be referenced from
5473 the section hash.
5474
5475 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5476
5477 * configure.in (ia64-*-netbsd*): New target.
5478 * configure: Regenerate.
5479
5480 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5481
5482 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5483 to @dots call.
5484 <Detailed description, ARM options>: Ditto.
5485 * doc/c-arm.texi (ARM Options): Ditto.
5486
5487 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5488
5489 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5490 do_mia, do_mar and do_mra respectively.
5491 (do_mav_*): Renamed from do_c_*.
5492 (mav_reg_required_here, mav_parse_offset): Renamed from
5493 cirrus_reg_required_here and cirrus_parse_offset respectively.
5494 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5495
5496 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5497 Keith Walker <keith.walker@arm.com>
5498
5499 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5500 (insns): Add pattern for bxj instruction.
5501 (do_bxj): New function.
5502 (arm_cpus): Add arm926ej.
5503 (arm_archs): Add armv5tej.
5504
5505 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5506
5507 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5508
5509 2002-01-19 Keith Walker <keith.walker@arm.com>
5510
5511 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5512
5513 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5514
5515 * NEWS: Mention new ARM command-line options and VFP support.
5516
5517 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5518 uses changed.
5519 (ARM_CEXT_MAVERICK): Similarly.
5520 (ARM_ANY): Now means any core instruction.
5521 (CPU_DEFAULT): Default to ARM_ANY.
5522 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5523 (pic_code): Declare for all object types. Make type int.
5524 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5525 (march_fpu_opt, mfpu_opt): Declare.
5526 (md_longopts): Tidy up conditional definitions.
5527 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5528 (arm_long_opts): New tables.
5529 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5530 (arm_parse_extension): New function.
5531 (md_parse_option): Rewrite using new table-driven system.
5532 (md_show_usage): Use new table-driven system.
5533 (md_begin): Calculate cpu_variant from command line option data.
5534 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5535 command-line options.
5536 * doc/c-arm.texi: Likewise.
5537
5538 2002-01-18 Andreas Jaeger <aj@suse.de>
5539
5540 * as.c (parse_args): Update year.
5541
5542 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5543
5544 * config/tc-tic54x.c (encode_address): Add a more informative
5545 warning about incorrect syntax.
5546
5547 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5548
5549 * po/gas.pot: Regenerate.
5550
5551 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5552
5553 * macro.c (get_any_string): Add no-c-format comment to prevent
5554 confusion when translating string.
5555 * gasp.c (get_any_string): Add no-c-format comment to prevent
5556 confusion when translating string.
5557
5558 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5559 Johannes Stezenbach <js@convergence.de>
5560 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5561 matched before the shorter ones.
5562 (my_getSmallParser): Fix handling of nested parentheses in
5563 percent_op's. Code cleanup.
5564 (my_getPercentOp): New function, code from my_getSmallParser.
5565 (my_getSmallExpression): Fix handling of closing parentheses.
5566 Code cleanup. Better comments.
5567
5568 2002-01-16 Nick Clifton <nickc@redhat.com>
5569
5570 po/tr.po: New file: Turkish translation.
5571 configure.in (LINGUAS): Add "tr".
5572 configure: Regenerate.
5573
5574 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5575
5576 Support for VFP instructions
5577 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5578 (cp_address_required_here): New argument wb_ok. When false, do not
5579 accept write-back forms of addressing. Change all callers.
5580 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5581 (FPU_VFP_EXT_V2): Define.
5582 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5583 Define in terms of above.
5584 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5585 (vfp_reg): New struct.
5586 (vfp_regs): New array of registers.
5587 (insns): Add VFP instructions.
5588 (sn_table): New array of VFP single-precision register names.
5589 (dn_table): New array of VFP double-precision register names.
5590 (all_reg_maps): Add the new register tables.
5591 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5592 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5593 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5594 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5595 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5596 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5597 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5598 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5599 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5600 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5601 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5602 (do_vfp_sp_dp_cvt): New functions.
5603 (md_begin): Set soft-float flag for appropriate VFP work.
5604 (md_atof): Handle VFP-format doubles.
5605 (md_parse_option): Handle VFP command-line options.
5606 (md_show_usage): Display VFP command-line options.
5607
5608 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5609
5610 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5611 various command line options.
5612
5613 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5614
5615 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5616 vtinherit relocs.
5617 (xstormy16_md_apply_fix3): Do not return a value.
5618
5619 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5620
5621 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5622 the -EL/-EB option that matches the target's endianness.
5623 (md_parse_option): Likewise.
5624
5625 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5626
5627 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5628 is not dependent on ARM_BI_ENDIAN.
5629
5630 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5631
5632 * tc-arm.c (all error messages): Normalize capitalization of messages.
5633
5634 * tc-arm.h (md_operand): Delete define.
5635 * tc-arm.c (in_my_get_expression): New static variable.
5636 (my_get_expression): Set and clear it.
5637 (md_operand): New function. If called from my_get_expression
5638 put the error in inst.error.
5639 (output_inst): Now takes argument of instruction being assembled.
5640 Print it out with any error message.
5641 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5642 with '=' syntax.
5643 (end_of_line): Don't update inst.error if it is already set.
5644
5645 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5646
5647 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5648 op that can be translated into a mvn instruction.
5649
5650 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5651
5652 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5653 setting default md.flags.
5654 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5655 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5656 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5657 for 32 bit unwind info blocks.
5658 (generate_unwind_image): Add support for different types
5659 of unwind images (32 bits and/or big-endian).
5660 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5661 (ia64_target_format): Add support for hpux target formats.
5662 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5663 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5664 SHT_FINI_ARRAY elf section types.
5665
5666 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5667
5668 * tc-arm.c (struct reg_entry): Move before prototypes.
5669 (int_register, cp_register, fp_register): Delete.
5670 (reg_table): Delete. Replaced with ...
5671 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5672 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5673 (mav_dspsc_table): ... one table per register set.
5674 (arm_reg_hsh): Delete.
5675 (struct reg_map): New structure.
5676 (all_reg_maps): New array.
5677 (enum arm_reg_type): New enums.
5678 (build_reg_hsh): New function.
5679 (insert_reg_alias): Use hash table passed by caller. Adjust all
5680 callers.
5681 (create_register_alias): New function, split out from ...
5682 (md_assemble): ... here.
5683 (md_begin): Build new register hash tables.
5684 (arm_reg_parse): New argument for the hash table to search. Adjust all
5685 callers.
5686 (arm_reg_parse_any): New function.
5687 (co_proc_number): Look up the processor number in the processor hash
5688 table.
5689 (cirrus_regtype): Delete.
5690 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5691 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5692 (ARM_EXT_MAVERICKsc_register): Delete.
5693 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5694 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5695 functions.
5696 (do_c_triple_4, do_c_triple_5): Delete.
5697 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5698 (do_c_quad_6): Delete.
5699 (do_c_quad_6[ab]): New functions.
5700 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5701 arguments to use new register parsing methods.
5702 (cirrus_reg_required_here): Likewise.
5703 (insns): Reclassify cirrus maverick worker functions.
5704 (cirrus_valid_reg): Delete.
5705
5706 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5707
5708 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5709 (sh*-*-netbsdelf*): New target.
5710 * configure: Regenerate.
5711 * tc-sh.h: Update copyright years.
5712 (TARGET_FORMAT): Add version for TE_NetBSD.
5713
5714 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5715
5716 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5717 negative.
5718
5719 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5720
5721 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5722 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5723
5724 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5725
5726 * tc-mips.c (mips_cprestore_valid): New flag.
5727 (mips_frame_reg_valid): New flag.
5728 (macro) [M_JAL_2]: Check both flags.
5729 [M_JAL_A]: Likewise.
5730 (s_cprestore): Set mips_cprestore_valid.
5731 (tc_get_register): If setting mips_frame_reg, set
5732 mips_frame_reg_valid and clear mips_cprestore_valid.
5733 (s_mips_ent): Clear both flags.
5734 (s_mips_end): Clear both flags.
5735
5736 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5737
5738 * write.c (write_object_file): Make use of bfd_section_list_remove.
5739 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5740 * config/tc-mmix.c (mmix_frob_file): Likewise.
5741
5742 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5743
5744 * configure.in (i386-*-netbsdelf*): Collapse target into...
5745 (i386-*-netbsd*): ...this. Add support for x86-64.
5746 * configure: Regenerated.
5747
5748 2002-01-03 matthew green <mrg@redhat.com>
5749
5750 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5751
5752 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5753
5754 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5755 NULL frag link.
5756
5757 For older changes see ChangeLog-0001
5758 \f
5759 Local Variables:
5760 mode: change-log
5761 left-margin: 8
5762 fill-column: 74
5763 version-control: never
5764 End: