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