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