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