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