6bf8ddbd84735a7dc8f45c978141aa89844caaa2
[deliverable/binutils-gdb.git] / gas / ChangeLog
1 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
2
3 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4 (ecoff_directive_def): Likewise.
5 (ecoff_directive_tag): Likewise.
6 * listing.c (file_info): Likewise.
7 * hash.c (what): Likewise.
8
9 2002-06-25 H.J. Lu <hjl@gnu.org>
10
11 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
12 * Makefile.in: Regenerated.
13
14 Wed Jun 19 15:12:00 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
15
16 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
17 (assemble_ppi): Generate warning if the same register is used
18 twice as destination in the same padd / pmuls instruction.
19
20 2002-06-18 Dave Brolley <brolley@redhat.com>
21
22 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
23 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
24 * configure.in: Support frv-*-*.
25 * Makefile.am (CPU_TYPES): Add frv.
26 (TARGET_CPU_CFILES): Add tc-frv.c.
27 (TARGET_CPU_HFILES): Add tc-frv.h.
28 (DEPTC_frv_coff): New variable.
29 (DEPTC_frv_elf): New variable.
30 (DEPOBJ_frv_coff): New variable.
31 (DEPOBJ_frv_elf): New variable.
32 (DEP_frv_coff): New variable.
33 (DEP_frv_elf): New variable.
34 * tc-frv.c: New file.
35 * tc-frv.h: New file.
36
37 2002-06-17 Catherine Moore <clm@redhat.com>
38
39 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
40
41 Mon Jun 17 16:29:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
42
43 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
44
45 2002-06-17 Tom Rix <trix@redhat.com>
46
47 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
48
49 2002-06-14 H.J. Lu <hjl@gnu.org>
50 Daniel Jacobowitz <drow@mvista.com>
51
52 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
53 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
54 * config/tc-mips.c (s_mips_file): Call s_app_file_string
55 and new_logical_line for the first .file directive.
56 * read.c (s_app_file_string): New function.
57 (s_app_file): Call it.
58 * read.h (s_app_file_string): Add declaration.
59
60 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
61
62 * configure.in: Remove MIPS_STABS_ELF.
63 * configure: Regenerated.
64 * config.in: Regenerated.
65 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
66 for MIPS targets.
67 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
68 ".extern".
69 (pdr_seg): Declare unconditionally.
70 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
71 (s_mips_end): Likewise. Generate stabs function markers.
72 (s_mips_ent): Generate stabs function markers.
73 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
74 ELF.
75 (s_mips_mask): Likewise.
76 (mips_flag_mdebug): New.
77 (md_longopts): Add "mdebug" and "no-mdebug".
78 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
79 (mips_after_parse_args): Set mips_flag_mdebug.
80 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
81
82 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
83
84 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
85 value twice for RELA relocations.
86
87 2002-06-12 Ben Elliston <bje@redhat.com>
88
89 * symbols.c (resolve_symbol_value): Initialise final_val.
90
91 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
92
93 2002-06-11 Tom Rix <trix@redhat.com>
94
95 * config/tc-ppc.c (ppc_subseg_align): Delete.
96 (ppc_change_csect): Default csect align is 2.
97 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
98
99 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
100
101 * config/tc-avr.c (mcu_types): Update.
102
103 2002-06-08 Matt Thomas <matt@3am-software.com>
104
105 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
106 (vax-*-netbsd*): New targets.
107 * configure: Regenerate.
108 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
109 * config/tc-vax.c: Add support for ELF and PIC.
110 (flag_want_pic): New flag.
111 (float_cons): Fix prototype.
112 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
113 (md_assemble): Introduce a new is_absolute local, and use it
114 rather than repeating the test. Make fatal errors actually
115 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
116 Add support for ELF. Add support for PIC.
117 (md_convert_frag): Adjust for BFD_ASSEMBLER.
118 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
119 BFD_ASSEMBLER.
120 (vax_reg_parse): Make the % register prefix mandatory for ELF,
121 optional for a.out, and not allowed for VMS. Adjust all callers.
122 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
123 (md_create_long_jump): Likewise.
124 (md_undefined_symbol): Likewise.
125 (md_section_align): Likewise.
126 (md_shortopts): Allow -k and -K for ELF.
127 (md_parse_option): Set flag_want_pic if -k or -K.
128 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
129 (tc_gen_reloc): New function if BFD_ASSEMBLER.
130 * config/tc-vax.h (tc_headers_hook): Remove.
131 (TARGET_FORMAT): Set according to object format and target
132 environment.
133 (BFD_ARCH, TARGET_ARCH): Define.
134 (NO_RELOC): Adjust for BFD_ASSEMBLER.
135 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
136 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
137 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
138
139 2002-06-08 Alan Modra <amodra@bigpond.net.au>
140
141 * Makefile.am: Run "make dep-am".
142 * Makefile.in: Regenerate.
143
144 * as.c: Replace CONST with const.
145 * write.c: Likewise.
146 * config/obj-coff.c: Likewise.
147 * config/tc-a29k.c: Likewise.
148 * config/tc-arm.c: Likewise.
149 * config/tc-dlx.c: Likewise.
150 * config/tc-h8300.c: Likewise.
151 * config/tc-h8500.c: Likewise.
152 * config/tc-i370.c: Likewise.
153 * config/tc-i860.c: Likewise.
154 * config/tc-i960.c: Likewise.
155 * config/tc-m68hc11.c: Likewise.
156 * config/tc-m68k.c: Likewise.
157 * config/tc-m88k.c: Likewise.
158 * config/tc-mcore.c: Likewise.
159 * config/tc-mips.c: Likewise.
160 * config/tc-ns32k.c: Likewise.
161 * config/tc-pdp11.c: Likewise.
162 * config/tc-pj.c: Likewise.
163 * config/tc-s390.c: Likewise.
164 * config/tc-sh.c: Likewise.
165 * config/tc-sparc.c: Likewise.
166 * config/tc-tahoe.c: Likewise.
167 * config/tc-tic80.c: Likewise.
168 * config/tc-v850.c: Likewise.
169 * config/tc-vax.c: Likewise.
170 * config/tc-w65.c: Likewise.
171 * config/tc-z8k.c: Likewise.
172
173 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
174
175 Based on patch from Matt Green:
176 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
177 * config/tc-mips.c (s_mips_file): Renamed from s_file.
178 (s_mips_loc): New function.
179 (mips_nonecoff_pseudo_table): Call them.
180 (append_insn): Call dwarf2_emit_insn.
181
182 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
183
184 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
185 to -1.
186 (file_ase_mips16): New veriable.
187 (mips_eabi64): Remove.
188 (CPU_HAS_MIPS16): New define.
189 (CPU_HAS_MDMX): Fix data type.
190 (md_begin): Code cleanup. Use file_ase_mips16.
191 (mips_elf_final_processing): Handle mips16 header flag.
192 Handle EABI flag without intermediate variable.
193
194 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
195
196 * doc/as.texinfo: Update MIPS documentation.
197
198 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
199
200 * config/tc-mips.c: Add define for $zero register.
201 (md_begin): Add $zero as alias name for $0.
202 (insn_uses_reg): Use ZERO define.
203 (mips_ip): Add $zero as alias name for $0.
204 (mips16_ip): Likewise.
205 (s_cplocal): Demand empty rest of input line.
206 (tc_get_register): Likewise. Add support for $kt0, kt1 register
207 names. Use ZERO define. Fix input_line_pointer progress.
208
209 2002-06-07 Alan Modra <amodra@bigpond.net.au>
210
211 * symbols.c: Replace CONST by const throughout.
212 (symbol_find_exact): Split out from..
213 (symbol_find_base): ..here.
214 * symbols.h: Replace CONST by const throughout.
215 (symbol_find_exact): Declare.
216 * config/obj-elf.c: #include "struc-symbol.h".
217 (elf_frob_file): If group name matches an exported symbol, use that
218 symbol for the signature and ".group" as the section name.
219
220 Thu Jun 6 17:42:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
221
222 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
223 but warn about it.
224 * testsuite/gas/sh/pcrel.s: Also test @(symbol,pc).
225 * testsuite/gas/sh/pcrel.d: Update.
226 * testsuite/gas/sh/pcrel.l: New file.
227
228 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
229
230 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
231 and mips_opts.ase_mdmx if they are uninitialized.
232
233 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
234
235 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
236 (hppa_force_relocation): Check if a stub just before the start symbol
237 of the last call_info is reachable before forcing relocation. Fix
238 typo.
239
240 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
241
242 * config/tc-mips.c (mips_after_parse_args): New function.
243 (md_begin): Move processing of defaults to mips_after_parse_args.
244 config/tc-mips.h (md_after_parse_args): Define.
245
246 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
247
248 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
249 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
250 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
251 * configure: Regenerate.
252 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
253 environment.
254
255 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
256
257 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
258
259 2002-06-04 Alan Modra <amodra@bigpond.net.au>
260
261 * config/obj-elf.c (obj_elf_change_section): Set and check elf
262 linkonce flag. Print all warnings.
263 (obj_elf_section): Parse ",comdat" for groups.
264 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
265 consistency of comdat flag.
266
267 2002-06-02 Richard Henderson <rth@redhat.com>
268
269 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
270 with LITERALs without sequence numbers.
271
272 2002-06-01 Richard Henderson <rth@redhat.com>
273
274 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
275 Rename them LITUSE_ALPHA_*.
276
277 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
278
279 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
280 accept parentheses enclosed register lists.
281
282 2002-05-31 Alan Modra <amodra@bigpond.net.au>
283
284 * Makefile.am: Run "make dep-am".
285 * Makefile.in: Regenerate.
286 * po/POTFILES.in: Regenerate.
287
288 2002-05-31 Graeme Peterson <gp@qnx.com>
289
290 * configure.in: Add i386-*-nto-qnx*.
291 * configure: Regenerate.
292
293 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
294
295 * config/tc-mips.c (mips_ip): Use unsigned long values for
296 warning output.
297
298 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
299
300 * config/tc-mips.c (s_cpsetup): Fix initialization of
301 mips_cpreturn_register and mips_cpreturn_offset.
302
303 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
304
305 * config/tc-mips.c (s_cpsetup): Fix comment.
306
307 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
308
309 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
310 (mips_ip): Likewise.
311 (mips16_ip): Likewise.
312 (tc_get_register): Likewise.
313
314 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
315 Ed Satterthwaite <ehs@broadcom.com>
316
317 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
318 (mips_opts): Initialize "ase_mdmx" member.
319 (file_ase_mdmx): New variable.
320 (CPU_HAS_MDMX): New macro.
321 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
322 based on command line options and configuration defaults.
323 (macro_build): Note in comment that use of MDMX in macros is
324 not currently allowed.
325 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
326 "Z" MDMX operand types.
327 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
328 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
329 types.
330 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
331 Add support for "-mdmx" and "-no-mdmx" options.
332 (OPTION_ELF_BASE): Move to accomodate new options.
333 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
334 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
335 file_ase_mdmx was set.
336 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
337 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
338 nomdmx" directives.
339
340 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
341
342 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
343 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
344 command line switch conforming to gcc conventions.
345 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
346
347 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
348
349 * config/tc-mips.c (macro_build_jalr): New Function.
350 (md_begin): NewABI uses big GOTs.
351 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
352 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
353 (load_address): Add some NewABI PIC support.
354 (macro): Likewise.
355 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
356 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
357
358 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
359
360 * config/tc-mips.c (load_address): Use mips_gp_register instead
361 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
362 instead.
363 (macro): Use mips_gp_register instead of hardcoded value.
364
365 2002-05-30 Richard Henderson <rth@redhat.com>
366
367 * expr.h (operatorT): Add O_md17..O_md32.
368 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
369 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
370 O_tprelhi, O_tprello, O_tprel): New.
371 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
372 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
373 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
374 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
375 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
376 (md_apply_fix3): Handle TLS relocations.
377 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
378 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
379 associated TLS reloc. Check lituse_tls relocs match up.
380 (emit_insn): Handle TLS relocations.
381 (ldX_op): Remove.
382
383 * doc/c-alpha.texi: Add docs for tls relocations.
384
385 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
386
387 * config/tc-mips.c (mips_gprel_offset): New variable.
388 (s_gpvalue): Use it.
389
390 2002-05-30 Diego Novillo <dnovillo@redhat.com>
391
392 * gas/config/tc-d10v.c (check_resource_conflict): Only check
393 write-write conflicts.
394 (md_assemble): Reformat introductory comment.
395 (parallel_ok): Prevent packing only if the first
396 instruction cannot be packed.
397
398 2002-05-30 Jason Eckhardt <jle@redhat.com>
399 Tom Rix <trix@redhat.com>
400
401 * config/tc-d10v.c (build_insn): Check for immediates.
402
403 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
404
405 * config/tc-mips.c: Replace GP in comments by $gp.
406 (mips_big_got): Initialize.
407 (mips_trap): Initialize.
408 (load_address): Use mips_gp_register instead of hardcoded value.
409 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
410 (macro): Use mips_gp_register instead of hardcoded value.
411 (macro2): Change load_address calls.
412 (md_pcrel_from): Comment formatting.
413 (s_cpload): Use mips_gp_register instead of hardcoded value.
414 (s_cprestore): Likewise. Comment formatting.
415 (s_gpword): Fix data type.
416 (s_cpadd): Use mips_gp_register instead of hardcoded value.
417 (nopic_need_relax): Replace GP in comments by $gp.
418 (mips_elf_final_processing): Better comment.
419
420 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
421
422 * configure.in: Add DLX configuraton
423 * Makefile.am: Add DLX configuraton
424 * configure: Regenerate.
425 * Makefile.in: Regenerate.
426 * config/tc-dlx.c: New file.
427 * config/tc-dlx.h: New files.
428 * NEWS: Mention new support.
429
430 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
431
432 * config/obj-coff.c (write_object_file): Add missing semicolon.
433
434 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
435
436 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
437 by the define. Remove superfluous check of mips_opts.mips16.
438 (append_insn): Likewise. Canonicalize variable increments.
439 (macro_build): Canonicalize variable increments.
440 (macro_build_lui): Likewise.
441 (load_register): Likewise.
442 (load_address): Move pointer initialization.
443 (macro): Move pointer to a more local scope. Canonicalize variable
444 increments. Better comments. Replace magic constant for RA by the
445 define.
446 (macro2): Replace magic constant for RA by the define. Canonicalize
447 variable increments.
448 (mips_ip): Canonicalize variable increments.
449 (mips16_ip): Replace magic constant for RA by the define.
450 (my_getSmallParser): Canonicalize variable increments/decrements.
451 (my_getPercentOp): Likewise.
452 (my_getSmallExpression): Likewise.
453 (s_align): Likewise.
454 (s_mipsset): Likewise.
455 (s_cpsetup): Likewise.
456 (s_insn): Remove superfluous check of mips_opts.mips16.
457 (s_mips_stab): Likewise.
458 (mips_handle_align): Canonicalize variable increments.
459 (s_mips_ent): Likewise.
460 (s_mips_end): Add comment.
461
462 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
463
464 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
465 * configure: Regenerate.
466
467 2002-05-25 Alan Modra <amodra@bigpond.net.au>
468
469 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
470 * Makefile.in: Regenerate.
471 * dep-in.sed: Reorder to match OBJS in Makefile.am.
472 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
473 * configure: Regenerate.
474 * as.h: Use #include "" instead of <> for local header files.
475 * flonum-konst.c: Likewise.
476 * flonum-mult.c: Likewise.
477 * gasp.c: Likewise.
478 * listing.c: Likewise.
479 * config/tc-ia64.h: Likewise.
480 * config/tc-v850.h: Likewise.
481
482 2002-05-24 TAMURA Kent <kent@netbsd.org>
483
484 * configure.in: Add a target for i386-netbsdpe.
485 * configure: Regenerate.
486
487 2002-05-23 Jakub Jelinek <jakub@redhat.com>
488
489 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
490 (obj_elf_common): Call elf_common.
491 (obj_elf_tls_common): New function.
492 (elf_pseudo_tab): Support .tls_common.
493 (special_sections): Add .tdata and .tbss.
494 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
495 sections.
496 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
497 (obj_elf_parse_section_letters): Include T in error message.
498 * config/tc-ppc.c (ppc_section_letter): Likewise.
499 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
500 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
501 SEC_MERGE.
502 * config/tc-sparc.c (md_apply_fix3): Likewise.
503 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
504 Define them if not BFD_ASSEMBLER.
505 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
506 and @NTPOFF.
507 (md_apply_fix3): Add TLS relocs.
508 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
509 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
510 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
511 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
512 (ia64_elf_section_letter): Include T in error message.
513 (md_begin): Support TLS operators.
514 (md_operand): Likewise.
515 (ia64_gen_real_reloc_type): Support TLS relocs.
516 * testsuite/gas/i386/tlspic.s: New file.
517 * testsuite/gas/i386/tlsd.s: New file.
518 * testsuite/gas/i386/tlsnopic.s: New file.
519 * testsuite/gas/i386/tlsd.d: New file.
520 * testsuite/gas/i386/tlsnopic.d: New file.
521 * testsuite/gas/i386/tlspic.d: New file.
522 * testsuite/gas/i386/i386.exp: Add tlsd, tlsnopic and tlspic tests.
523 * testsuite/gas/ia64/tls.s: New file.
524 * testsuite/gas/ia64/tls.d: New file.
525 * testsuite/gas/ia64/ia64.exp: Add tls test.
526 * write.c (adjust_reloc_syms): Don't change symbols in
527 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
528
529 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
530
531 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
532 round the relocation up rather than down.
533
534 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
535
536 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
537 flag.
538 * doc/as.texinfo: Document that the COFF version of .section
539 ignores the 'a' flag.
540
541 2002-05-23 Alan Modra <amodra@bigpond.net.au>
542
543 * config/tc-alpha.c (assemble_tokens): Protect use of
544 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
545
546 * write.c (size_seg): Check adjustment to last frag.
547 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
548 section alignment.
549 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
550 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
551 (write_object_file): Invoke md_do_align if available, and use
552 frag_align_code on text sections.
553 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
554 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
555 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
556 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
557 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
558 BFD_ASSEMBLER too.
559
560 2002-05-22 H.J. Lu <hjl@gnu.org>
561
562 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
563 for source file.
564
565 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
566
567 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
568 as ELF builds.
569
570 2002-05-22 H.J. Lu <hjl@gnu.org>
571
572 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
573 for one .loc for compiler.
574
575 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
576
577 * config/tc-mips.c (macro): Relax warning, it's toot strict for
578 embedded-PIC.
579
580 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
581
582 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
583 Optimize the rotate by zero case.
584
585 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
586
587 * configure.in: Remove accidental enabling of bfd_gas=yes for
588 sh-coff targets.
589 * configure: Regenerate.
590
591 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
592
593 * app.c: Fix formatting.
594 * as.c: Likewise.
595 * ehopt.c: Likewise.
596 * expr.c: Likewise.
597 * input-file.c: Likewise.
598 * listing.c: Likewise.
599 * macro.h: Likewise.
600 * stabs.c: Likewise.
601 * symbols.c: Likewise.
602
603 2002-05-17 Alan Modra <amodra@bigpond.net.au>
604
605 * config/obj-generic.c: Delete file.
606 * config/obj-generic.h: Likewise.
607
608 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
609
610 * config/tc-avr.c (mcu_types): Update for new devices.
611
612 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
613
614 * config/tc-mips.c (macro): Warn about wrong la/dla use.
615
616 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
617
618 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
619 worked sometimes by accident. Fix copy&paste comment.
620
621 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
622
623 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
624 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
625 (mips_elf_final_processing): Let n32 use .reginfo.
626
627 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
628
629 * config/tc-mips.c (append_insn): Fix too small range of variable.
630
631 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
632
633 * config/tc-arm.c (arm_cleanup): Remove redundant call to
634 listing_prev_line().
635
636 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
637
638 * config/tc-arm.c (md_assemble): Remove redundant call to
639 listing_prev().
640
641 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
642 loc_directive_seen.
643
644 * stabs.c (s_stab_generic): Fix grammatical error in warning
645 message.
646
647 2002-05-13 Alan Modra <amodra@bigpond.net.au>
648
649 * write.c (subsegs_finish): Don't specially align last subseg.
650
651 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
652
653 * stabs.c (s_stab_generic): Warn about a description field that is
654 too big.
655
656 * config/obj-coff.c: Fix compile time warnings when compiling
657 without BFD_ASSEMBLER defined.
658 Fix formatting.
659
660 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
661 target.
662 (md_pcrel_from_section): Use md_pcrel_from().
663
664 2002-05-11 Bruno Haible <bruno@clisp.org>
665
666 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
667 by dwarf2_directive_loc, instead of calling dwarf2_where.
668
669 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
670
671 * config/obj-coff.h: Fix formatting.
672 * config/tc-mcore.c: Likewise.
673 * config/tc-mn10300.c: Likewise.
674 * config/tc-openrisc.c: Likewise.
675 * config/tc-or32.c: Likewise.
676 * config/tc-pdp11.c: Likewise.
677 * config/tc-ppc.c: Likewise.
678 * config/tc-ppc.h: Likewise.
679 * config/tc-sh64.c: Likewise.
680 * config/tc-sh.c: Likewise.
681 * config/tc-tic54x.c: Likewise.
682 * config/tc-xstormy16.c: Likewise.
683 * config/tc-xstormy16.h: Likewise.
684
685 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
686
687 * config/obj-coff.c: Fix formatting.
688 * config/obj-elf.c: Likewise.
689 * config/tc-alpha.c: Likewise.
690 * config/tc-arm.c: Likewise.
691 * config/tc-d10v.c: Likewise.
692 * config/tc-d30v.c: Likewise.
693 * config/tc-h8300.c: Likewise.
694 * config/tc-hppa.c: Likewise.
695
696 2002-05-09 Alan Modra <amodra@bigpond.net.au>
697
698 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
699 reloc when no_cond_jump_promotion.
700
701 2002-05-08 Jim Wilson <wilson@redhat.com>
702
703 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
704 current variable part of frag.
705
706 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
707
708 * config/tc-mmix.c: Fix formatting.
709 * config/tc-mmix.h: Likewise.
710
711 2002-05-08 Alan Modra <amodra@bigpond.net.au>
712
713 * configure: Regenerate.
714
715 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
716
717 * config/tc-m68k.c: Fix formatting.
718
719 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
720
721 * Makefile.am: Honour DESTDIR.
722 * Makefile.in: Regenerate.
723
724 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
725
726 * config/tc-ia64.c: Fix formatting.
727 * config/tc-ia64.h: Likewise.
728
729 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
730
731 * config/tc-mips.c: Fix formatting.
732 * config/tc-s390.c: Likewise.
733 * config/tc-s390.h: Likewise.
734
735 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
736
737 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
738 information for instructions.
739
740 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
741
742 * as.h: Fix formatting.
743 * cgen.c: Likewise.
744 * cgen.h: Likewise.
745 * dwarf2dbg.c: Likewise.
746 * frags.h: Likewise.
747 * gasp.c: Likewise.
748 * macro.c: Likewise.
749 * read.c: Likewise.
750 * stabs.c: Likewise.
751 * symbols.c: Likewise.
752
753 2002-05-02 Alan Modra <amodra@bigpond.net.au>
754
755 * app.c (mri_pseudo): Only declare for TC_M68K.
756
757 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
758 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
759 BFD_RELOC_16_BASEREL.
760 (md_assemble): Likewise.
761 (md_apply_fix3): Likewise.
762
763 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
764
765 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
766 zero into an add of zero - it is not the same.
767
768 2002-05-01 Arati Dikey <aratid@kpit.com>
769
770 * tc-sh.c (get_specific): Generate warning if the same
771 destination register is used in parallel instructions.
772
773 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
774
775 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
776
777 2002-05-01 Alan Modra <amodra@bigpond.net.au>
778
779 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
780 backwards to prevent cascading errors.
781
782 2002-04-30 Mark Mitchell <mark@codesourcery.com>
783
784 * configure.in: Add support for powerpc-*-windiss.
785 * configure: Regenerated.
786
787 2002-04-28 Alan Modra <amodra@bigpond.net.au>
788
789 * config/tc-s390.c (md_parse_option): Formatting.
790
791 * config/tc-i386.c: Formatting fixes, add missing space in error
792 message.
793
794 2002-04-24 Christian Groessler <chris@groessler.org>
795
796 * config/tc-z8k.c (build_bytes): Add support for new cases:
797 CLASS_IGNORE and ARG_NIM4.
798 (md_assemble): Prevent destruction of input_line_pointer if
799 get_operands returns failure.
800
801 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
802
803 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
804 instructions to be generated by macros.
805
806 2002-04-24 Andreas Schwab <schwab@suse.de>
807
808 * config/tc-i386.c (output_jump, output_disp)
809 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
810 more.
811 (md_apply_fix3): Remember addend value for rela relocations.
812 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
813
814 2002-04-22 Chris Demetriou <cgd@broadcom.com>
815
816 * config/tc-mips.c (macro_build): Add close-parenthesis missing
817 from previous change.
818
819 2002-04-22 Eric Christopher <echristo@redhat.com>
820
821 * config/tc-mips.c (macro_build): Add warning if macro instructions
822 are expanded into a branch delay slot.
823
824 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
825
826 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
827 numbers, gdb relies on them to detect the start of the prologue.
828
829 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
830
831 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
832 symbols in merge sections.
833
834 2002-04-16 Alan Modra <amodra@bigpond.net.au>
835
836 * as.c (main): Don't reference _bfd_chunksize.
837
838 2002-04-15 Tom Rix <trix@redhat.com>
839
840 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
841 symbols in merge sections.
842
843 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
844
845 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
846 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
847 argument for the precision.
848 (gen_to_words): Update accordingly.
849
850 2002-04-10 Alan Modra <amodra@bigpond.net.au>
851
852 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
853 BFD_VERSION_STRING unavailable.
854 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
855
856 Tue Apr 9 16:45:48 2002 J"orn Rennecke <joern.rennecke@superh.com>
857
858 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
859 symbol_used_in_reloc_p is true.
860
861 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
862 endian hosts.
863
864 2002-04-04 Alan Modra <amodra@bigpond.net.au>
865
866 * dep-in.sed: Cope with absolute paths.
867 * Makefile.am (dep.sed): Subst TOPDIR.
868 Run "make dep-am".
869 * Makefile.in: Regenerate.
870
871 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
872
873 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
874 (mips_ip): Remove unused variable.
875 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
876 unsigned char with bfd_byte.
877 (s_file): Remove unused variable.
878 (s_mips_ent): Likewise.
879
880 2002-04-03 Tom Rix <trix@redhat.com>
881
882 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
883 (build_insn): Same.
884 (find_opcode): Fix warning in as_warn.
885 * config/tc-d10v.h: Update Copyright.
886
887 2002-04-03 Alan Matsuoka <alanm@redhat.com>
888 Tom Rix <trix@redhat.com>
889
890 From Jeff Knaggs <jknaggs@redhat.com>
891 * config/tc-d10v.c (check_resource_conflict): New function to
892 check for resource conflicts.
893
894 From Jason Eckhardt <jle@redhat.com>
895 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
896 imm3 fields.
897 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
898 reserved control registers is used.
899 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
900 imm3 fields.
901
902 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
903 * tc-d10v.c (parallel_ok): Prevent packing only if the first
904 instruction cannot be packed.
905
906 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
907 * gas/config/tc-d10v.c (check_resource_conflict): Only check
908 write-write conflicts.
909 (md_assemble): Reformat introductory comment.
910 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
911 arguments.
912
913 2002-04-03 Alan Modra <amodra@bigpond.net.au>
914
915 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
916 O_logical_not>): Derive final_seg from add_symbol.
917 <O_multiply..O_logical_or>: More final_seg twiddles.
918
919 2002-04-01 Jessica Han <jessica@cup.hp.com>
920
921 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
922 in 32-bit mode.
923
924 2002-03-27 Andreas Schwab <schwab@suse.de>
925
926 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
927 field for pc-relative fixups.
928 (output_disp): Likewise.
929 (md_estimate_size_before_relax): Likewise.
930 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
931 pc-relative fixups in 64bit mode.
932
933 2002-03-22 Alan Modra <amodra@bigpond.net.au>
934
935 * config/te-aix5.h: Typo fix.
936
937 2002-03-21 Alan Modra <amodra@bigpond.net.au>
938
939 * Makefile.am: Run "make dep-am".
940 * Makefile.in: Regenerate.
941 * doc/Makefile.in: Regenerate.
942
943 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
944
945 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
946 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
947
948 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
949
950 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
951 the EXTENDED bit here; report the estimate according to the
952 current size.
953
954 2002-03-18 Tom Rix <trix@redhat.com>
955
956 * configure.in: Add AIX 5 support.
957 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
958 * config/te-aix5.h: New file. AIX 5 support.
959 * configure: Regenerate.
960
961 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
962
963 * po/fr.po: Updated version.
964
965 2002-03-16 Andreas Jaeger <aj@suse.de>
966
967 * doc/c-mips.texi (Machine Dependencies): Add new node.
968
969 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
970
971 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
972 (mips_opts): Initialize "ase_mips3d" member.
973 (file_ase_mips3d): New variable.
974 (CPU_HAS_MIPS3D): New macro.
975 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
976 based on command line options and configuration defaults.
977 (macro_build, mips_ip): Accept MIPS-3D instructions if
978 mips_opts.ase_mips3d is set.
979 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
980 Add support for "-mips3d" and "-no-mips3d" options.
981 (OPTION_ELF_BASE): Move to accomodate new options.
982 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
983 (mips_elf_final_processing): Add a comment indicating that a
984 MIPS-3D ASE ELF header flag should be set, when one exists.
985 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
986 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
987 nomips3d" directives.
988
989 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
990
991 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
992 a weak symbol in same section to be within reach.
993
994 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
995
996 * po/fr.po: Updated version.
997
998 2002-03-12 Andreas Schwab <schwab@suse.de>
999
1000 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
1001 body record so that an error is given for misplaced .save
1002 pseudo-ops.
1003
1004 2002-03-09 Alan Modra <amodra@bigpond.net.au>
1005
1006 * config/tc-i386.h (REX_OPCODE): Define.
1007 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
1008 (rex_byte): typedef to int.
1009 * config/tc-i386.c: Group prototypes and vars together.
1010 Formatting fixes. Remove occurrences of "register" keyword.
1011 (true): Delete.
1012 (false): Delete.
1013 (mode_from_disp_size): Add INLINE keyword to prototype.
1014 (fits_in_signed_byte): Likewise.
1015 (fits_in_unsigned_byte): Likewise.
1016 (fits_in_unsigned_word): Likewise.
1017 (fits_in_signed_word): Likewise.
1018 (fits_in_unsigned_long): Likewise.
1019 (fits_in_signed_long): Likewise.
1020 (type_names): Constify.
1021 (intel_float_operand): Constify param.
1022 (add_prefix): Use REX_OPCODE.
1023 (md_assemble): Likewise. Modify for changed rex_byte.
1024 (parse_insn): Split out of md_assemble.
1025 (parse_operands): Likewise.
1026 (swap_operands): Likewise.
1027 (optimize_imm): Likewise.
1028 (optimize_disp): Likewise.
1029 (match_template): Likewise.
1030 (check_string): Likewise.
1031 (process_suffix): Likewise.
1032 (check_byte_reg): Likewise.
1033 (check_long_reg): Likewise.
1034 (check_qword_reg): Likewise.
1035 (check_word_reg): Likewise.
1036 (finalize_imm): Likewise.
1037 (process_operands): Likewise.
1038 (build_modrm_byte): Likewise.
1039 (output_insn): Likewise.
1040 (output_branch): Likewise.
1041 (output_jump): Likewise.
1042 (output_interseg_jump): Likewise.
1043 (output_disp): Likewise.
1044 (output_imm): Likewise.
1045
1046 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1047
1048 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1049
1050 2002-03-06 Alan Modra <amodra@bigpond.net.au>
1051
1052 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
1053 relocs except when BFD64.
1054
1055 * write.c (number_to_chars_bigendian): Don't abort when N is
1056 larger than sizeof (VAL).
1057 (number_to_chars_littleendian): Likewise.
1058
1059 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1060
1061 * config/tc-hppa.c (md_apply_fix3): Add cast.
1062 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
1063 e_rrsel.
1064
1065 2002-03-05 Paul Koning <pkoning@equallogic.com>
1066
1067 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
1068 (parse_ac5): New function for parsing float regs in float operand.
1069 (parse_expression): Remove attempt to make literals be octal.
1070 (parse_op_no_deferred): Support float literals.
1071 (parse_op): Reject attempts to refer to float regs.
1072 (parse_fop): New function, like parse_op but for float operand.
1073 (md_assemble): Add cases to parse float operands. Also fix
1074 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
1075
1076 2002-03-04 H.J. Lu <hjl@gnu.org>
1077
1078 * config/obj-elf.c (special_section): Add .init_array,
1079 .fini_array and .preinit_array.
1080
1081 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
1082 .init_array and .fini_array.
1083
1084 2002-03-01 Jakub Jelinek <jakub@redhat.com>
1085
1086 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
1087 visibility.
1088 (obj_frob_symbol): Copy visibility.
1089
1090 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1091
1092 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
1093 s_text.
1094 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
1095
1096 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
1097
1098 * po/es.po: Updated.
1099
1100 2002-02-26 Chris Demetriou <cgd@broadcom.com>
1101
1102 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
1103 only, undo the changes made on 2001-06-08, with the
1104 effect being that common or extern symbols are
1105 adjusted for embedded-PIC, but weak symbols are not.
1106 (md_estimate_size_before_relax: Likewise, with the effect
1107 that extern symbols are treated the same as weak symbols
1108 only if not embedded-PIC.
1109 (mips_fix_adjustable) Likewise, with the effect that
1110 weak or extern symbols are not adjusted for embedded-PIC.
1111 (md_apply_fix3): Tweak so that the case where value is zero
1112 is handled more correctly for embedded-PIC code.
1113
1114 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
1115
1116 * doc/as.texinfo (Overview): Add missing @ifset IA64
1117
1118 * configure.in (LINGUAS): Add es.po.
1119 * configure: Regenerate.
1120 * po/es.po: New file.
1121
1122 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1123
1124 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
1125 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
1126 and NO_PIC cases. Code cleanup.
1127 (macro2): Fix handling of 64bit register loads.
1128
1129 2002-02-25 David Mosberger <davidm@hpl.hp.com>
1130
1131 * doc/as.texinfo: Add entry for IA64.
1132 * doc/c-ia64.texi: New file.
1133
1134 2002-02-25 Alan Modra <amodra@bigpond.net.au>
1135
1136 * config/tc-hppa.c: Update copyright date.
1137
1138 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
1139 Remove references to chip manufacturers.
1140 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
1141 Correct comments.
1142 (md_show_usage): Remove references to chip manufacturers. Mention
1143 -mpower4.
1144 (md_begin): Test power4 opcode flag bits.
1145
1146 2002-02-22 David Mosberger <davidm@hpl.hp.com>
1147
1148 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
1149 count exceeds prologue count.
1150 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
1151 (unwind.label_prologue_count): New member.
1152
1153 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
1154
1155 (get_saved_prologue_count): New function.
1156 (save_prologue_count): New function.
1157 (free_saved_prologue_count): New function.
1158 (dot_label_state): Record state label by calling save_prologue_count().
1159 (dot_copy_state): Restore prologue count by calling
1160 get_saved_prologue_count().
1161 (generate_unwind_image): Free up list of saved prologue
1162 counts by calling free_saved_prologue_counts().
1163
1164 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
1165
1166 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
1167 function declarations.
1168
1169 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
1170
1171 * NEWS: Note that GASP is now deprecated.
1172 * Makefile.am: Do not build gasp-new by default.
1173 * Makefile.in: Regenerate.
1174 * doc/Makefile.am: Do not install gasp.info.
1175 * doc/Makefile.in: Regenerate.
1176 * gas/gasp.texi: Note that gasp is now deprecated.
1177
1178 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1179
1180 * NEWS: Mark 2.12 branch.
1181
1182 2002-02-19 Tom Tromey <tromey@redhat.com>
1183
1184 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
1185
1186 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1187
1188 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
1189 option input.
1190
1191 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1192
1193 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
1194 Make bit size independent of architecture switch.
1195 (md_begin): Add warning for -m64 with -Aesa.
1196 (s390_md_end): Use renamed architecture defines.
1197
1198 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
1199
1200 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
1201
1202 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
1203
1204 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
1205 instead of CRIS.
1206
1207 2002-02-15 Chris Demetriou <cgd@broadcom.com>
1208
1209 * config/tc-mips.c (md_estimate_size_before_relax): Really
1210 make sure we treat weak like extern only for ELF. (Fixes
1211 patch from 2001-07-25.)
1212
1213 2002-02-15 Ben Elliston <bje@redhat.com>
1214
1215 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
1216 works as expected.
1217
1218 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1219
1220 * NEWS: Mention support for MMIX.
1221
1222 2002-02-13 Chris Demetriou <cgd@broadcom.com>
1223
1224 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
1225 a sequence of indpendent 'if' statements for easier debugging
1226 and future modification.
1227
1228 2002-02-13 Matt Fredette <fredette@netbsd.org>
1229
1230 * config/tc-m68k.c (md_show_usage): No longer display a
1231 hard-coded "68020" for the default CPU, instead display the
1232 canonical name of the true, configured default CPU.
1233 (m68k_elf_final_processing): Mark objects for sub-68020
1234 CPUs with the new EF_M68000 flag.
1235
1236 2002-02-13 Andreas Schwab <schwab@suse.de>
1237
1238 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
1239 pc-relative relocations to merge sections in 64-bit mode.
1240
1241 2002-02-13 Ben Elliston <bje@redhat.com>
1242
1243 * NEWS: Document floating point number handling in gasp.
1244 * gasp.c: Include <assert.h> and "xregex.h".
1245 (is_flonum): New function.
1246 (chew_flownum): Likewise.
1247 (change_base): Consume flonums from the input, where possible.
1248 * doc/gasp.texi (Constants): Document floating point numbers.
1249
1250 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
1251
1252 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
1253 that implicitly use LR and RR selectors.
1254
1255 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
1256
1257 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
1258 and `epsw' as available on AM33 and above only.
1259 (other_register_name): Add logic to handle machine type encoded in
1260 reg_number.
1261
1262 2002-02-11 Tom Rix <trix@redhat.com>
1263
1264 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
1265 xcoff64.
1266
1267 Mon Feb 11 11:23:38 2002 Alexandre Oliva <aoliva@redhat.com>
1268
1269 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
1270 Use all over.
1271
1272 Mon Feb 11 12:59:29 CET 2002 Jan Hubicka <jh@suse.cz>
1273
1274 * i386.c (md_assemble): Support 32bit address prefix.
1275 (i386_displacement): Likewise.
1276 (i386_index_check): Accept 32bit addressing in 64bit mode.
1277
1278 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1279
1280 * config/tc-sh.c (dot): Removed unused function.
1281
1282 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1283
1284 * Makefile.am: "make dep-am".
1285 * Makefile.in: Regenerate.
1286 * aclocal.m4: Regenerate.
1287 * config.in: Regenerate.
1288 * configure: Regenerate.
1289 * doc/Makefile.in: Regenerate.
1290
1291 2002-02-10 Richard Henderson <rth@redhat.com>
1292
1293 * doc/c-alpha.texi: New file.
1294 * doc/Makefile.am (CPU_DOCS): Add it.
1295 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
1296
1297 2002-02-09 Richard Henderson <rth@redhat.com>
1298
1299 * config/tc-alpha.c (O_samegp): New.
1300 (USER_RELOC_P): Include it.
1301 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
1302 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
1303 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
1304 (alpha_validate_fix): New.
1305 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
1306
1307 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
1308
1309 * doc/c-cris.texi: New.
1310 * doc/all.texi: @set CRIS.
1311 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
1312 Include c-cris.texi.
1313 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
1314 * doc/Makefile.in: Regenerate.
1315
1316 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1317
1318 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
1319 determine if a number is a sign-extended 32-bit number.
1320 (load_register): Use IS_SEXT_32BIT_NUM.
1321 (macro): Check if load/store macro handling is using a
1322 constant 32-bit address on 64-bit address systems, and if
1323 so optimize the generation of that address.
1324
1325 2002-02-08 Richard Henderson <rth@redhat.com>
1326
1327 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
1328 we've eliminated all foreign relocation types yet.
1329 (alpha_fix_adjustable): Likewise.
1330
1331 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1332
1333 Contribute sh64-elf.
1334 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1335 Stephen Clarke <Stephen.Clarke@st.com>
1336 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
1337 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
1338 * config/tc-sh.c (md_relax_table): Added default sizes for
1339 non-PC-relative UNDEF_MOVI, and relaxation sequences for
1340 MOVI_16, MOVI_32 and MOVI_48.
1341 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
1342 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
1343 and MOVI_16.
1344 (shmedia_md_estimate_size_before_relax): Remove redundant
1345 blocks. Set fragP->fr_var even if relaxation type unchanged.
1346 Retain UNDEF_MOVI until expression decays to number.
1347 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1348 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
1349 relocation types. Take fixP->fx_addnumber into account too.
1350 (shmedia_md_apply_fix): Likewise.
1351 (shmedia_md_convert_frag): Likewise.
1352 (shmedia_build_Mytes): Likewise.
1353 (sh64_consume_datalabel): Complain about nested datalabel.
1354 Support PIC relocs. Call sh_parse_name.
1355 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
1356 in tc-sh.h to SHmedia reloc types.
1357 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
1358 MOVI_GOTPC): New relaxation constants.
1359 (md_relax_table): Introduce relaxation directives for PIC-related
1360 constants.
1361 (sh_PIC_related_p): Handle datalabel.
1362 (sh_check_fixup): Choose SH5 PIC relocations.
1363 (sh_cons_fix_new): Added BDF_RELOC_64.
1364 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
1365 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1366 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
1367 current ISA is SHmedia, get 7 bytes.
1368 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
1369 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
1370 void function.
1371 * config/tc-sh64.c (shmedia_apply_fix): Rename to
1372 shmedia_apply_fix3 and make void.
1373 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
1374 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
1375 as_bad.
1376 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
1377 * config/tc-sh64.h (md_parse_name): Take &c as argument.
1378 2001-03-14 DJ Delorie <dj@redhat.com>
1379 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
1380 * doc/Makefile.in(CPU_DOCS): Ditto.
1381 * doc/c-sh64.texi: New file.
1382 * doc/as.texinfo: Add SH64 support.
1383 2001-03-13 DJ Delorie <dj@redhat.com>
1384 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
1385 A_REUSE_PREV so that its purpose is more obvious.
1386 (shmedia_build_Mytes): Ditto.
1387 2001-03-07 DJ Delorie <dj@redhat.com>
1388 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
1389 before processing.
1390 (sh64_vtable_inherit): Ditto.
1391 (strip_datalabels): New, strip "datalabel" from given line.
1392 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
1393 pseudos.
1394 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
1395 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
1396 call ...
1397 (shmedia_build_Mytes): ... to here.
1398 2001-03-06 DJ Delorie <dj@redhat.com>
1399 * config/tc-sh.c: Remove sh64-specific uaquad now that there
1400 is a generic one.
1401 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
1402 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
1403 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
1404 address by one in call to dwarf2_emit_insn.
1405 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
1406 Implement ".abi" pseudo and correct .cranges descriptors. Correct
1407 alignment handling broken by imported changes.
1408 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
1409 (sh64_handle_align): Declare.
1410 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
1411 (sh64_max_mem_for_rs_align_code): Declare.
1412 (enum sh64_isa_values): Moved here from tc-sh64.c.
1413 (md_do_align): Define.
1414 (sh64_do_align): Declare.
1415 (struct sh64_tc_frag_data): New.
1416 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
1417 changed.
1418 (TC_FRAG_INIT): Change to set new datatype.
1419 (struct sh64_segment_info_type): Rename member
1420 last_flushed_location to last_contents_mark. All users changed.
1421 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
1422 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
1423 * config/tc-sh.c (md_pseudo_table): Add ".abi".
1424 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
1425 of unsetting seen_insn.
1426 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
1427 call sh64_update_contents_mark.
1428 (sh_handle_align): Remove HAVE_SH64-conditioned code.
1429 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
1430 enum sh64_isa_values.
1431 (sh64_set_contents_type): Drop segT parameter. All callers changed.
1432 (emitting_crange): Boolean guard moved to file scope from function
1433 scope in sh64_set_contents_type.
1434 (s_sh64_abi): New.
1435 (sh64_update_contents_mark): New; most split out from
1436 sh64_flush_pending_output.
1437 (shmedia_md_end): Call sh64_update_contents_mark. Set
1438 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
1439 (sh64_do_align): New function.
1440 (sh64_max_mem_for_rs_align_code): New function.
1441 (sh64_handle_align): Rename from shmedia_do_align. Make
1442 non-static. Add head comment. Emit zero bytes for n bytes modulo
1443 four. Change return-type to void.
1444 (shmedia_elf_new_section): Remove.
1445 (shmedia_md_assemble): Call sh64_update_contents_mark.
1446 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
1447 new frag. Call sh64_update_contents_mark after making the new
1448 frag.
1449 (sh64_flush_pending_output): Just call sh64_update_contents_mark
1450 and sh_flush_pending_output.
1451 (sh64_flag_output): Also call md_flush_pending_output, but add
1452 condition on not emitting_crange.
1453 (sh64_tc_cons_fix_new): Remove.
1454 2001-01-12 Nick Clifton <nickc@redhat.com>
1455 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
1456 alignment handling scheme imported from sourceware.
1457 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
1458 * config/tc-sh64.h (TARGET_FORMAT): Define.
1459 (sh64_target_format): Prototype.
1460 * config/tc-sh64.c (sh64_target_mach): New function.
1461 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
1462 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
1463 zero_address_frag instead of copying the frag of the symbol.
1464 (shmedia_frob_file_before_adjust): Ditto.
1465 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
1466 to valueT to remove signedness.
1467 (shmedia_md_convert_frag): Add parameter final. Rename parameter
1468 headers to output_bfd. Do not evaluate symbols if final is false;
1469 do emit fixups.
1470 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
1471 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
1472 to the current frag, call shmedia_md_convert_frag to emit fixups
1473 and make frag_wane neutralize the frag. Update comments.
1474 * config/tc-sh.c (md_convert_frag): Change caller of
1475 shmedia_md_convert_frag.
1476 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1477 * config/tc-sh64.h: Tweak comments and correct formatting.
1478 * config/tc-sh64.c: Ditto.
1479 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
1480 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
1481 for the no-relocation case.
1482 (shmedia_check_limits): Fix range check being off-by-one for PTA.
1483 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
1484 wrappers.
1485 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
1486 comment.
1487 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
1488 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
1489 expansion.
1490 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
1491 Correct comment.
1492 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1493 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
1494 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
1495 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
1496 al>: Set lowest bit of field to relocate to 1 and rest to empty,
1497 if reloc is emitted.
1498 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1499 New options plus bugfixes.
1500 * config/tc-sh.c (md_longopts): New options "-no-expand" and
1501 "-expand-pt32".
1502 (md_parse_option): Handle new options.
1503 (md_show_usage): Add blurb for new options.
1504 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
1505 (sh64_expand, sh64_pt32): New variables.
1506 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
1507 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
1508 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
1509 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
1510 <resolved previously-pc-relative relocs>: Handle
1511 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
1512 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
1513 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
1514 points to SHcompact code.
1515 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
1516 SH64PCREL16)>: Check that ISA of what operand points at and
1517 PTA/PTB matches, or emit error.
1518 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
1519 SHMEDIA_BFD_RELOC_PT.
1520 (shmedia_immediate_op): If pcrel, emit fixup also for constant
1521 operand.
1522 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
1523 condition for MOVI expansion.
1524 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
1525 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
1526 sh64_expand.
1527 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
1528 fixup.
1529 (sh64_target_format): Error-check setting of sh64_pt32 and
1530 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
1531 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
1532 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
1533 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
1534 * config/tc-sh64.c: Improve comments.
1535 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
1536 not say the linker will check correctness of PTA/PTB expansion.
1537 (shmedia_md_end): Make non-static.
1538 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
1539 prototype.
1540 * config/tc-sh.c (sh_finalize): Remove.
1541 * config/tc-sh.h (md_end): Do not define.
1542 Remove prototype for sh_finalize.
1543 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1544 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
1545 sh64_section_data container when storing section type in tdata
1546 field in elf_section_data.
1547 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
1548 EF_SH5.
1549 * Makefile.am: Update dependencies.
1550 * Makefile.in: Regenerate.
1551 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
1552 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
1553 dwarf2_emit_insn call with test on debug_type.
1554 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
1555 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
1556 CRT_SH5_ISA32 sticky for 64-bit.
1557 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1558 Generate .crange sections when switching ISA mode or emitting
1559 constants in same section as code.
1560 * config/tc-sh64.c: Reformat structure definitions.
1561 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
1562 variables.
1563 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
1564 to emit a .cranges descriptor when contents type changes. Only
1565 emit error if changing contents type and -no-mix is in effect.
1566 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
1567 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
1568 (shmedia_md_end): Set sh64_end_of_assembly. Pass
1569 sh64_flush_last_crange over sections.
1570 When checking main symbol of datalabel symbol, check for
1571 STO_SH5_ISA32, not ISA type of section in definition.
1572 (shmedia_frob_file_before_adjust): Check main symbol for
1573 STO_SH5_ISA32; don't check ISA type of section in definition.
1574 (shmedia_frob_section_type): Adjust for .cranges; set section flag
1575 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
1576 .cranges entries have been output.
1577 (shmedia_elf_new_section): Just call md_flush_pending_output.
1578 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
1579 fix. Do not set tc_segment_info_data.in_code for section. Call
1580 sh64_set_contents_type for SHmedia code.
1581 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
1582 false. Call md_flush_pending_output.
1583 (sh64_target_format): Check that -no-mix and
1584 -shcompact-const-crange are used in sane combination with other
1585 options.
1586 (shmedia_md_pcrel_from_section): Check type of fix for how to
1587 adjust pc-relative.
1588 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
1589 not ISA type of section in definition.
1590 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
1591 hold contents-type state.
1592 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
1593 (sh64_flush_pending_output): Declare.
1594 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
1595 (sh64_tc_cons_fix_new): Declare.
1596 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
1597 call sh64_flag_output.
1598 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
1599 call sh64_set_contents_type to mark SHcompact code and set
1600 seen_insn.
1601 (md_longopts): New options "-no-mix" and
1602 "-shcompact-const-crange".
1603 (md_parse_option): Handle new options.
1604 (md_show_usage): Add blurb for new options.
1605 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
1606 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1607 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
1608 (sh64_last_insn_frag): New.
1609 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
1610 to get frag for insn opcode for generating fixups; do not assume it
1611 is the same frag.
1612 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
1613 for new insn.
1614 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
1615 section.
1616 (TC_FRAG_TYPE): Define as fragS *.
1617 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
1618 (sh64_last_insn_frag): Declare.
1619 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
1620 not == NULL before dereferencing.
1621 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1622 Get rid of BFD section flag and EF_SH64_ABI64.
1623 * config/tc-sh64.c (shmedia_frob_section_type): Use
1624 elf_section_data (sec)->tdata, not a specific BFD section flag, to
1625 communicate the section as containing SHmedia code. Describe why.
1626 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
1627 EF_SH64 regardless of ABI.
1628 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
1629 in error message. Handle resolved expressions for
1630 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
1631 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
1632 (shmedia_check_limits): Handle BFD_RELOC_64.
1633 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
1634 a STO_SH5_ISA32 symbol, only the BFD value.
1635 2000-12-11 Ben Elliston <bje@redhat.com>
1636 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
1637 dwarf2_generate_asm_lineno.
1638 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
1639 Handle PC-relative MOVI expansions with assembler relaxation.
1640 Generate PC-relative relocs from 16-bit PC-relative expressions.
1641 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
1642 (shmedia_md_pcrel_from_section): ...here.
1643 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
1644 turned completely resolved. Adjust relocation type for 16-bit
1645 immediate operands that has turned PC-relative. Adjust back for
1646 MD_PCREL_FROM_SECTION being applied twice.
1647 (shmedia_md_convert_frag): Always emit reloc for expression with
1648 global or weak symbol. Handle relaxation result for PC-relative
1649 expressions.
1650 (shmedia_md_estimate_size_before_relax): An expression with a weak
1651 or global symbol can not be relaxed. Break out tests for
1652 relaxable symbol into variable sym_relaxable.
1653 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
1654 UNDEF_MOVI)>: Break out any PC-relative expression and change
1655 relaxation type.
1656 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
1657 opjp.
1658 <case A_IMMS16>: Fix typo for initial minor relaxation type of
1659 MOVI expansion. If X_op_symbol of the immediate expression is
1660 set, make an expression symbol for the argument to frag_var.
1661 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
1662 relaxations.
1663 (END): Adjust for new relaxations.
1664 (md_relax_table): Add entries for new relaxations.
1665 2000-12-07 Ben Elliston <bje@redhat.com>
1666 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
1667 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
1668 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
1669 SHORI operand offsets in PT/PTA/PTB expansions.
1670 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
1671 Implement DataLabel semantics.
1672 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
1673 shmedia_frob_file_before_adjust.
1674 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
1675 (DATALABEL_SUFFIX): Define.
1676 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
1677 symbol list to update "datalabel" symbols to their main symbol
1678 counterparts.
1679 (shmedia_frob_file_before_adjust): New.
1680 (sh64_adjust_symtab): For remaining datalabel symbols, set to
1681 undefined and set STT_DATALABEL.
1682 (sh64_frob_label): Initialize TC symbol field.
1683 (sh64_consume_datalabel): Actually implement semantics. New
1684 parameter operandf, call it instead of expression.
1685 (sh64_exclude_symbol): New.
1686 * config/tc-sh64.h (md_parse_name): Pass on the function operand
1687 to sh64_consume_datalabel.
1688 (tc_symbol_new_hook): Define to tc_frob_symbol.
1689 (TC_SYMFIELD_TYPE): Define to symbolS *.
1690 (tc_frob_symbol): Define to call sh64_exclude_symbol.
1691 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
1692 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
1693 case.
1694 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
1695 generating dwarf2 debug information.
1696 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1697 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
1698 elf64-sh64 for the 64-bit ABI.
1699 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
1700 option.
1701 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1702 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
1703 case-insensitivity.
1704 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
1705 * config/tc-sh64.c: Tweak comments, formatting and error messages.
1706 (enum sh64_abi_values): New type.
1707 (enum sh64_isa_values): New type.
1708 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
1709 (seen_shcompact_mode, seen_shmedia_mode): Delete.
1710 (sh64_abi): Replace shmedia_64.
1711 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
1712 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
1713 (s_sh64_mode): Check validity for this target.
1714 (sh64_target_format): Initialize defaults for ISA and ABI.
1715 Fallback to old object format if no SH64 ISA or ABI has been
1716 specified.
1717 * config/tc-sh.c (md_parse_option): Check combinations for errors.
1718 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
1719 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
1720 * config/tc-sh64.h: Fix typo in comment.
1721 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
1722 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
1723 <PT fixups for absolute values>: Size will be longest, not
1724 shortest.
1725 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
1726 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
1727 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
1728 and l1 to hold lowercase of two first characters. Change all
1729 remaining TO_LOWER to tolower.
1730 * config/tc-sh64.c (TO_LOWER): Delete.
1731 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
1732 (md_parse_name): Define.
1733 (sh64_consume_datalabel): Declare.
1734 (DOLLAR_DOT): Define.
1735 * config/tc-sh64.c (shmedia_parse_exp): New.
1736 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
1737 (shmedia_parse_reg): Remove const from src
1738 parameter.
1739 (shmedia_get_operands): Ditto for args parameter and ptr variable.
1740 (shmedia_md_assemble): Ditto for op_end variable.
1741 (shmedia_get_operand): Ditto for ptr parameter and src variable.
1742 Use shmedia_parse_exp, not parse_exp.
1743 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
1744 parameter. All callers changed.
1745 (shmedia_get_operand): Add shmedia_arg_type parameter. All
1746 callers changed.
1747 (shmedia_parse_reg): Put first two character in local variables.
1748 Use tolower, not TO_LOWER. If no register is found and argtype
1749 indicates a control register, scan shmedia_creg_table
1750 case-insensitive.
1751 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1752 * Makefile.am (CPU_TYPES): Add sh64.
1753 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
1754 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
1755 Regenerate dependencies.
1756 * Makefile.in: Regenerate.
1757 * configure.in: Add support for sh64-*-elf*.
1758 * configure: Regenerate.
1759 * config/tc-sh64.h: New.
1760 * config/tc-sh64.c: New.
1761 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
1762 .mode, .isa and .uaquad.
1763 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
1764 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
1765 [HAVE_SH64] (END): Define as 10.
1766 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
1767 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
1768 MOVI_64): Define.
1769 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
1770 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
1771 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
1772 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
1773 Define.
1774 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
1775 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
1776 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
1777 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
1778 SHmedia instructions. Handle state-change after switching to
1779 SHcompact.
1780 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
1781 (md_parse_option) [HAVE_SH64]: Parse new options.
1782 (md_show_usage) [HAVE_SH64]: Show usage of new options.
1783 (md_convert_frag) [HAVE_SH64] <default>: Call
1784 shmedia_md_convert_frag instead of abort.
1785 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
1786 BFD_RELOC_SH_SHMEDIA_CODE.
1787 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
1788 SHcompact or SHmedia code.
1789 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
1790 shmedia_md_apply_fix instead of abort.
1791 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
1792 result from calling shmedia_md_estimate_size_before_relax instead
1793 of calling abort.
1794 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
1795 do the work.
1796 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
1797 shmedia_init_reloc and do nothing more if it returns non-zero.
1798 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
1799 * po/POTFILES.in: Regenerate.
1800 * po/gas.pot: Regenerate.
1801
1802 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
1803
1804 * config/tc-sh.c (parse_at): Install the correct version of
1805 2002-02-04's patch.
1806
1807 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
1808 assume fixP->fx_subsy is non-NULL.
1809
1810 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1811
1812 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
1813 A_DISP_PC_ABS, and adjust it by -4.
1814 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
1815 expected.
1816 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
1817 the operand type is not A_DISP_PC_ABS.
1818
1819 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1820
1821 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
1822 common and weak symbols. Handle common and weak symbols as
1823 undefined symbols with regards to GREG handling and merging.
1824 (mmix_frob_file): Ditto.
1825
1826 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1827
1828 * configure.in (hppa-*-netbsd*): New target.
1829 * configure: Regenerate.
1830 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
1831
1832 2002-02-02 Alan Modra <amodra@bigpond.net.au>
1833
1834 * config/tc-v850.c: Add missing prototypes amd use old-style
1835 function definitions.
1836 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
1837 (sdata_section tdata_section, zdata_section, sbss_section,
1838 tbss_section, zbss_section, rosdata_section, rozdata_section,
1839 scommon_section, tcommon_section, zcommon_section,
1840 call_table_data_section, call_table_text_section): Delete.
1841 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
1842 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
1843 v850_call_table_data, v850_call_table_text): Delete.
1844 (struct v850_seg_entry): New.
1845 (v850_seg_table): New.
1846 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
1847 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
1848 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
1849 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
1850 (do_v850_seg): New.
1851 (v850_seg): New.
1852 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
1853 recording of alignment.
1854 (md_pseudo_table): Use v850_seg.
1855 (md_begin): Don't init .call_table_data and .call_table_text here.
1856 Set v850_seg_table bss entry.
1857
1858 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1859
1860 Support on-demand global register allocation by passing on
1861 base-plus-offset relocs to the linker.
1862 * config/tc-mmix.c: Tweak and fix typos in comments.
1863 (allocate_undefined_gregs_in_linker): New variable.
1864 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
1865 (md_longopts): Add --linker-allocated-gregs.
1866 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
1867 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
1868 (md_show_usage): Update text for -x. Add text for
1869 --linker-allocated-gregs.
1870 (tc_gen_reloc): Derive default value for addend from val and
1871 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
1872 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
1873 GREG if allocate_undefined_gregs_in_linker.
1874 * doc/as.texinfo (Overview) <Target MMIX options>: Add
1875 --linker-allocated-gregs.
1876 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
1877 --linker-allocated-gregs. Mention that it's implied by -x.
1878 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
1879 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
1880
1881 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
1882
1883 2002-02-01 Alan Modra <amodra@bigpond.net.au>
1884
1885 * Makefile.am: Run "make dep-am"
1886 * Makefile.in: Regenerate.
1887
1888 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1889
1890 * config/tc-or32.c: New file.
1891 * config/tc-or32.h: New file.
1892 * configure.in: Add support for or32 targets.
1893 * configure: Regenerate.
1894 * config/obj-coff.c: Add support for or32 targets.
1895 * config/obj-coff.h: Add support for or32 targets.
1896 * Makefile.am: Add support for or32 targets.
1897 * Makefile.in: Regenerate.
1898 * NEWS: Mention support for OpenRISC.
1899 * doc/Makefile.in: Regenerate.
1900 * po/POTFILES.in: Regenerate.
1901 * po/gas.pot: Regenerate.
1902
1903 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
1904
1905 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
1906 and mod.
1907
1908 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1909
1910 * config/tc-mips.c (tc_gen_reloc): Arrange for
1911 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
1912 their LO16 parts, even for ELF.
1913
1914 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
1915
1916 * config/tc-i386.c: Protect definitions of true and false
1917 from redefinition.
1918
1919 2002-01-28 Jakub Jelinek <jakub@redhat.com>
1920
1921 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
1922 made because of .weak, if they are neither defined nor used in any
1923 way.
1924
1925 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * configure: Regenerated.
1928
1929 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1930
1931 * doc/Makefile.am (install): Depend on install-info.
1932 * doc/Makefile.in: Regenerate.
1933
1934 2002-01-26 Nick Clifton <nick@redhat.com>
1935
1936 * po/fr.po: Updated version
1937
1938 2002-01-24 Kazu Hirata <kazu@hxi.com>
1939
1940 * config/tc-h8300.c (check_operand): Don't print a warning
1941 when a valid 24-bit address is given to a 16-bit address
1942 operand.
1943
1944 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1945
1946 * config/tc-sh.c (sh_elf_suffix): Removed.
1947 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
1948 sh_end_of_match, sh_parse_name): New functions.
1949 (sh_elf_cons): Simplify.
1950 (parse_exp): Reject misplaced PIC operands.
1951 (md_undefined_symbol): Simplify.
1952 (sh_fix_adjustable): Let @GOTOFF be adjusted.
1953 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
1954 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
1955 Complain if subsy remains at the end.
1956 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
1957 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
1958
1959 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
1960
1961 * config/tc-mn10300.c (xr_registers): Move `pc'...
1962 (other_registers): ... here.
1963
1964 2002-01-22 Alan Modra <amodra@bigpond.net.au>
1965
1966 * Makefile.am: Run "make dep-am".
1967 * Makefile.in: Regenerate.
1968 * gas/po/POTFILES.in: Regenerate.
1969
1970 2002-01-21 DJ Delorie <dj@redhat.com>
1971
1972 * config/obj-coff.c (obj_coff_init_stab_section): Make the
1973 stabstr_name allocation permanent, as it will be referenced from
1974 the section hash.
1975
1976 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1977
1978 * configure.in (ia64-*-netbsd*): New target.
1979 * configure: Regenerate.
1980
1981 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
1982
1983 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
1984 to @dots call.
1985 <Detailed description, ARM options>: Ditto.
1986 * doc/c-arm.texi (ARM Options): Ditto.
1987
1988 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1989
1990 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
1991 do_mia, do_mar and do_mra respectively.
1992 (do_mav_*): Renamed from do_c_*.
1993 (mav_reg_required_here, mav_parse_offset): Renamed from
1994 cirrus_reg_required_here and cirrus_parse_offset respectively.
1995 (MAV_MODE?): Renamed from CIRRUS_MODE?.
1996
1997 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
1998 Keith Walker <keith.walker@arm.com>
1999
2000 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
2001 (insns): Add pattern for bxj instruction.
2002 (do_bxj): New function.
2003 (arm_cpus): Add arm926ej.
2004 (arm_archs): Add armv5tej.
2005
2006 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2007
2008 * doc/c-arm.texi: Add new fpe options to list of supported flags.
2009
2010 2002-01-19 Keith Walker <keith.walker@arm.com>
2011
2012 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
2013
2014 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
2015
2016 * NEWS: Mention new ARM command-line options and VFP support.
2017
2018 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
2019 uses changed.
2020 (ARM_CEXT_MAVERICK): Similarly.
2021 (ARM_ANY): Now means any core instruction.
2022 (CPU_DEFAULT): Default to ARM_ANY.
2023 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
2024 (pic_code): Declare for all object types. Make type int.
2025 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
2026 (march_fpu_opt, mfpu_opt): Declare.
2027 (md_longopts): Tidy up conditional definitions.
2028 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
2029 (arm_long_opts): New tables.
2030 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
2031 (arm_parse_extension): New function.
2032 (md_parse_option): Rewrite using new table-driven system.
2033 (md_show_usage): Use new table-driven system.
2034 (md_begin): Calculate cpu_variant from command line option data.
2035 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
2036 command-line options.
2037 * doc/c-arm.texi: Likewise.
2038
2039 2002-01-18 Andreas Jaeger <aj@suse.de>
2040
2041 * as.c (parse_args): Update year.
2042
2043 2002-01-17 Timothy Wall <twall@alum.mit.edu>
2044
2045 * config/tc-tic54x.c (encode_address): Add a more informative
2046 warning about incorrect syntax.
2047
2048 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2049
2050 * po/gas.pot: Regenerate.
2051
2052 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
2053
2054 * macro.c (get_any_string): Add no-c-format comment to prevent
2055 confusion when translating string.
2056 * gasp.c (get_any_string): Add no-c-format comment to prevent
2057 confusion when translating string.
2058
2059 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2060 Johannes Stezenbach <js@convergence.de>
2061 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
2062 matched before the shorter ones.
2063 (my_getSmallParser): Fix handling of nested parentheses in
2064 percent_op's. Code cleanup.
2065 (my_getPercentOp): New function, code from my_getSmallParser.
2066 (my_getSmallExpression): Fix handling of closing parentheses.
2067 Code cleanup. Better comments.
2068
2069 2002-01-16 Nick Clifton <nickc@redhat.com>
2070
2071 po/tr.po: New file: Turkish translation.
2072 configure.in (LINGUAS): Add "tr".
2073 configure: Regenerate.
2074
2075 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2076
2077 Support for VFP instructions
2078 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
2079 (cp_address_required_here): New argument wb_ok. When false, do not
2080 accept write-back forms of addressing. Change all callers.
2081 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
2082 (FPU_VFP_EXT_V2): Define.
2083 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
2084 Define in terms of above.
2085 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
2086 (vfp_reg): New struct.
2087 (vfp_regs): New array of registers.
2088 (insns): Add VFP instructions.
2089 (sn_table): New array of VFP single-precision register names.
2090 (dn_table): New array of VFP double-precision register names.
2091 (all_reg_maps): Add the new register tables.
2092 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
2093 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
2094 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
2095 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
2096 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
2097 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
2098 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
2099 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
2100 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
2101 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
2102 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
2103 (do_vfp_sp_dp_cvt): New functions.
2104 (md_begin): Set soft-float flag for appropriate VFP work.
2105 (md_atof): Handle VFP-format doubles.
2106 (md_parse_option): Handle VFP command-line options.
2107 (md_show_usage): Display VFP command-line options.
2108
2109 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
2110
2111 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
2112 various command line options.
2113
2114 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
2115
2116 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
2117 vtinherit relocs.
2118 (xstormy16_md_apply_fix3): Do not return a value.
2119
2120 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2121
2122 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
2123 the -EL/-EB option that matches the target's endianness.
2124 (md_parse_option): Likewise.
2125
2126 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2127
2128 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
2129 is not dependent on ARM_BI_ENDIAN.
2130
2131 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
2132
2133 * tc-arm.c (all error messages): Normalize capitalization of messages.
2134
2135 * tc-arm.h (md_operand): Delete define.
2136 * tc-arm.c (in_my_get_expression): New static variable.
2137 (my_get_expression): Set and clear it.
2138 (md_operand): New function. If called from my_get_expression
2139 put the error in inst.error.
2140 (output_inst): Now takes argument of instruction being assembled.
2141 Print it out with any error message.
2142 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
2143 with '=' syntax.
2144 (end_of_line): Don't update inst.error if it is already set.
2145
2146 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2147
2148 * tc-arm.c ((do_ldst): Fix handling an immediate expression pseudo
2149 op that can be translated into a mvn instruction.
2150
2151 2002-01-11 Steve Ellcey <sje@cup.hp.com>
2152
2153 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
2154 setting default md.flags.
2155 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
2156 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
2157 * gas/config/tc-ia64.c (setup_unwind_header): Add support
2158 for 32 bit unwind info blocks.
2159 (generate_unwind_image): Add support for different types
2160 of unwind images (32 bits and/or big-endian).
2161 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
2162 (ia64_target_format): Add support for hpux target formats.
2163 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
2164 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
2165 SHT_FINI_ARRAY elf section types.
2166
2167 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
2168
2169 * tc-arm.c (struct reg_entry): Move before prototypes.
2170 (int_register, cp_register, fp_register): Delete.
2171 (reg_table): Delete. Replaced with ...
2172 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
2173 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
2174 (mav_dspsc_table): ... one table per register set.
2175 (arm_reg_hsh): Delete.
2176 (struct reg_map): New structure.
2177 (all_reg_maps): New array.
2178 (enum arm_reg_type): New enums.
2179 (build_reg_hsh): New function.
2180 (insert_reg_alias): Use hash table passed by caller. Adjust all
2181 callers.
2182 (create_register_alias): New function, split out from ...
2183 (md_assemble): ... here.
2184 (md_begin): Build new register hash tables.
2185 (arm_reg_parse): New argument for the hash table to search. Adjust all
2186 callers.
2187 (arm_reg_parse_any): New function.
2188 (co_proc_number): Look up the processor number in the processor hash
2189 table.
2190 (cirrus_regtype): Delete.
2191 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
2192 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
2193 (ARM_EXT_MAVERICKsc_register): Delete.
2194 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
2195 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
2196 functions.
2197 (do_c_triple_4, do_c_triple_5): Delete.
2198 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
2199 (do_c_quad_6): Delete.
2200 (do_c_quad_6[ab]): New functions.
2201 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
2202 arguments to use new register parsing methods.
2203 (cirrus_reg_required_here): Likewise.
2204 (insns): Reclassify cirrus maverick worker functions.
2205 (cirrus_valid_reg): Delete.
2206
2207 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
2208
2209 * configure.in (sh*le): Set cpu_type=sh and endian=little.
2210 (sh*-*-netbsdelf*): New target.
2211 * configure: Regenerate.
2212 * tc-sh.h: Update copyright years.
2213 (TARGET_FORMAT): Add version for TE_NetBSD.
2214
2215 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
2216
2217 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
2218 negative.
2219
2220 2002-01-06 Alan Modra <amodra@bigpond.net.au>
2221
2222 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
2223 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
2224
2225 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
2226
2227 * tc-mips.c (mips_cprestore_valid): New flag.
2228 (mips_frame_reg_valid): New flag.
2229 (macro) [M_JAL_2]: Check both flags.
2230 [M_JAL_A]: Likewise.
2231 (s_cprestore): Set mips_cprestore_valid.
2232 (tc_get_register): If setting mips_frame_reg, set
2233 mips_frame_reg_valid and clear mips_cprestore_valid.
2234 (s_mips_ent): Clear both flags.
2235 (s_mips_end): Clear both flags.
2236
2237 2002-01-05 Alan Modra <amodra@bigpond.net.au>
2238
2239 * write.c (write_object_file): Make use of bfd_section_list_remove.
2240 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
2241 * config/tc-mmix.c (mmix_frob_file): Likewise.
2242
2243 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2244
2245 * configure.in (i386-*-netbsdelf*): Collapse target into...
2246 (i386-*-netbsd*): ...this. Add support for x86-64.
2247 * configure: Regenerated.
2248
2249 2002-01-03 matthew green <mrg@redhat.com>
2250
2251 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
2252
2253 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
2254
2255 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
2256 NULL frag link.
2257
2258 For older changes see ChangeLog-0001
2259 \f
2260 Local Variables:
2261 mode: change-log
2262 left-margin: 8
2263 fill-column: 74
2264 version-control: never
2265 End:
This page took 0.07907 seconds and 4 git commands to generate.