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