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